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 0f89d2a commit 30a25d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudtrail/sns.s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ data "aws_iam_policy_document" "cloudtrail_s3_topic" {
## values = [local.account_id]
## }
condition {
test = ""
test = "StringEquals"
variable = "aws:SourceArn"
values = [aws_s3_bucket.this.arn]
}
Expand Down
2 changes: 1 addition & 1 deletion cloudtrail/sqs.s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ data "aws_iam_policy_document" "cloudtrail_s3_sqs" {
actions = ["sqs:SendMessage"]
resources = [var.enable_s3_sqs ? aws_sqs_queue.cloudtrail_s3[0].arn : ""]
condition {
test = "ArnEquals"
test = "StringEquals"
variable = "aws:SourceArn"
values = [var.enable_s3_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
}
Expand Down

0 comments on commit 30a25d0

Please sign in to comment.