Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 8, 2022
1 parent f61af43 commit 0c5760b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ data "aws_iam_policy_document" "topic" {
variable = "AWS:SourceOwner"
values = [local.account_id]
}
resources = [aws_sns_topic.topic.arn]
resources = [var.create && var.enable_sns ? aws_sns_topic.topic[0].arn : null]
}
}
##
## {
## "Sid": "sns",
## "Effect": "Allow",
## "Action": {
## "sns:Get*",
## "sns:Publish"
## "Resource": <Arn of the Sns topic created>
## }
##

0 comments on commit 0c5760b

Please sign in to comment.