Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 5, 2023
1 parent ad4e022 commit b7f6533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudtrail/sqs.s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data "aws_iam_policy_document" "cloudtrail_s3_deadletter" {
condition {
test = "ArnEquals"
variable = "aws:SourceArn"
values = [var.enable_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
values = [var.enable_s3_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
}
}
}
Expand Down Expand Up @@ -90,7 +90,7 @@ data "aws_iam_policy_document" "cloudtrail_s3_sqs" {
condition {
test = "ArnEquals"
variable = "aws:SourceArn"
values = [var.enable_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
values = [var.enable_s3_sns ? aws_sns_topic.cloudtrail_s3[0].arn : ""]
}
}
}
Expand Down

0 comments on commit b7f6533

Please sign in to comment.