Skip to content

Commit

Permalink
Remove empty policy statements (#7)
Browse files Browse the repository at this point in the history
* Remove empty policy statements

* Auto Format

* Update main.tf

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
nitrocode and cloudpossebot authored Dec 3, 2021
1 parent 24466fc commit 13b5edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data "aws_iam_policy_document" "this" {
source_json = var.iam_source_json_url != null ? data.http.iam_source_json_url[0].body : var.iam_source_json

dynamic "statement" {
for_each = var.iam_policy_statements
for_each = flatten(var.iam_policy_statements)

content {
sid = lookup(statement.value, "sid", null)
Expand Down

0 comments on commit 13b5edc

Please sign in to comment.