Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 16, 2021
1 parent ab14f2e commit 9e0b36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtrail/sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "aws_sns_topic" "cloudtrail" {

resource "aws_sns_topic_policy" "cloudtrail" {
count = var.enable_sns ? 1 : 0
arn = aws_sns_topic.cloudtrail.arn
arn = var.enable_sns ? aws_sns_topic.cloudtrail[0].arn : null
policy = data.aws_iam_policy_document.cloudtrail_topic.json
}

Expand Down

0 comments on commit 9e0b36d

Please sign in to comment.