Skip to content

Commit f25a70a

Browse files
committed
Break circular dependency
1 parent 5416cc7 commit f25a70a

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

infrastructure/terraform/components/api/module_sqs_amendments_queue.tf

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data "aws_iam_policy_document" "letter_updates_queue_policy" {
3535
]
3636

3737
resources = [
38-
module.amendments_queue.arn,
38+
"arn:aws:sqs:${var.region}:${var.aws_account_id}:${local.csi}-amendments-queue.fifo"
3939
]
4040

4141
condition {
@@ -45,31 +45,4 @@ data "aws_iam_policy_document" "letter_updates_queue_policy" {
4545

4646
}
4747
}
48-
49-
statement {
50-
sid = "AllowSNSPermissions"
51-
effect = "Allow"
52-
53-
principals {
54-
type = "Service"
55-
identifiers = ["sns.amazonaws.com"]
56-
}
57-
58-
actions = [
59-
"sqs:SendMessage",
60-
"sqs:ListQueueTags",
61-
"sqs:GetQueueUrl",
62-
"sqs:GetQueueAttributes",
63-
]
64-
65-
resources = [
66-
"arn:aws:sqs:${var.region}:${var.aws_account_id}:${var.project}-${var.environment}-${var.component}-letter-updates-queue"
67-
]
68-
69-
condition {
70-
test = "ArnEquals"
71-
variable = "aws:SourceArn"
72-
values = [module.eventsub.sns_topic_event_bus.arn]
73-
}
74-
}
7548
}

0 commit comments

Comments
 (0)