Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 12, 2022
1 parent 99b95b3 commit 34c1dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtrail/additional-sqs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ data "aws_iam_policy_document" "additional_cloudtrail_sqs" {
}

resource "aws_sns_topic_subscription" "additional_cloudtrail_sqs" {
for_each = var.enable_sns ? local.additional_sqs_names : {}
for_each = var.enable_sns ? local.additional_sqs_names : toset([])
protocol = "sqs"
topic_arn = var.enable_sns ? aws_sns_topic.cloudtrail[0].arn : null
endpoint = var.enable_sqs ? aws_sqs_queue.additional_cloudtrail[each.key].arn : null
Expand Down

0 comments on commit 34c1dd6

Please sign in to comment.