Skip to content

Commit

Permalink
fix: transition lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
patheard committed Oct 31, 2024
1 parent 4768da6 commit d62376b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "aws_s3_bucket" "this" {

# Several blocks - transition
dynamic "transition" {
for_each = length(keys(lookup(lifecycle_rule.value, "transition", []))) == 0 ? [] : lookup(lifecycle_rule.value, "transition", [])
for_each = length(keys(lookup(lifecycle_rule.value, "transition", {}))) == 0 ? [] : lookup(lifecycle_rule.value, "transition", {})

content {
date = try(transition.value.date, null)
Expand Down

0 comments on commit d62376b

Please sign in to comment.