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 0c5760b commit 89b34ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data "aws_iam_policy_document" "lambda_policy" {
resources = [var.create ? aws_dynamodb_table.table[0].arn : null]
}
dynamic "statement" {
for_each = var.create && var.enable_sns > 0 ? toset(["1"]) : toset([])
for_each = var.create && var.enable_sns ? toset(["1"]) : toset([])
iterator = s
content {
sid = "SNSLambdaAccess"
Expand Down

0 comments on commit 89b34ac

Please sign in to comment.