Skip to content

Commit e6eb58e

Browse files
committed
CCM-13475: add statement condition
1 parent 5a19130 commit e6eb58e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

infrastructure/terraform/components/dl/modules_eventpub.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,11 @@ data "aws_iam_policy_document" "sns_publish" {
5151
resources = [
5252
module.eventpub.sns_topic.arn
5353
]
54+
55+
condition {
56+
test = "ArnEquals"
57+
variable = "aws:SourceArn"
58+
values = [module.eventpub.bus.arn]
59+
}
5460
}
5561
}

0 commit comments

Comments
 (0)