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 89b34ac commit d07fc7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ data "aws_iam_policy_document" "lambda_policy" {
"dynamodb:Scan",
"dynamodb:UpdateItem",
]
resources = [var.create ? aws_dynamodb_table.table[0].arn : null]
resources = [var.create ? aws_dynamodb_table.table[0].arn : ""]
}
dynamic "statement" {
for_each = var.create && var.enable_sns ? toset(["1"]) : toset([])
Expand Down
2 changes: 1 addition & 1 deletion sns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ data "aws_iam_policy_document" "topic" {
variable = "AWS:SourceOwner"
values = [local.account_id]
}
resources = [var.create && var.enable_sns ? aws_sns_topic.topic[0].arn : null]
resources = [var.create && var.enable_sns ? aws_sns_topic.topic[0].arn : ""]
}
}

0 comments on commit d07fc7f

Please sign in to comment.