Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 6, 2023
1 parent 6c50b37 commit 70433a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloudtrail/sns.s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ data "aws_iam_policy_document" "cloudtrail_s3_topic" {
}
actions = ["sns:Publish"]
resources = [var.enable_s3_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
condition {
test = "StringEquals"
variable = "AWS:SourceOwner"
values = [local.account_id]
}
## condition {
## test = "StringEquals"
## variable = "AWS:SourceOwner"
## values = [local.account_id]
## }
condition {
test = "ArnLike"
variable = "AWS:SourceArn"
Expand Down

0 comments on commit 70433a3

Please sign in to comment.