Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank0202 committed Jun 27, 2024
1 parent f0ea5ed commit d10d88e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "this" {
storage_class = noncurrent_version_transition.value.storage_class
}
}

# Max 1 block - filter - without any key arguments or tags
# dynamic "filter" {
# for_each = length(try(flatten([rule.value.filter]), [])) == 0 ? [true] : []

# content {
# # prefix = ""
# }
# }

# Max 1 block - filter - with one key argument or a single tag
dynamic "filter" {
for_each = [for v in try(flatten([rule.value.filter]), []) : v if max(length(keys(v)), length(try(rule.value.filter.tags, rule.value.filter.tag, []))) == 1]
Expand Down

0 comments on commit d10d88e

Please sign in to comment.