Skip to content

Commit 52e40f6

Browse files
committed
Remove duplication
1 parent 8a35e1e commit 52e40f6

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

infrastructure/terraform/components/api/module_sqs_supplier_events_queue.tf

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,4 @@ data "aws_iam_policy_document" "supplier_events_queue_policy" {
4444
values = [module.eventsub.sns_topic_supplier.arn]
4545
}
4646
}
47-
48-
statement {
49-
sid = "AllowSNSPermissions"
50-
effect = "Allow"
51-
52-
principals {
53-
type = "Service"
54-
identifiers = ["sns.amazonaws.com"]
55-
}
56-
57-
actions = [
58-
"sqs:SendMessage",
59-
"sqs:ListQueueTags",
60-
"sqs:GetQueueUrl",
61-
"sqs:GetQueueAttributes",
62-
]
63-
64-
resources = [
65-
"arn:aws:sqs:${var.region}:${var.aws_account_id}:${local.csi}-supplier-events-queue.fifo"
66-
]
67-
68-
condition {
69-
test = "ArnEquals"
70-
variable = "aws:SourceArn"
71-
values = [module.eventsub.sns_topic_supplier.arn]
72-
}
73-
}
7447
}

0 commit comments

Comments
 (0)