diff --git a/modules/simple_bucket/main.tf b/modules/simple_bucket/main.tf index e70413c6..42bd792a 100644 --- a/modules/simple_bucket/main.tf +++ b/modules/simple_bucket/main.tf @@ -81,6 +81,7 @@ resource "google_storage_bucket" "bucket" { } condition { age = lookup(lifecycle_rule.value.condition, "age", null) + no_age = lookup(lifecycle_rule.value.condition, "no_age", null) created_before = lookup(lifecycle_rule.value.condition, "created_before", null) with_state = lookup(lifecycle_rule.value.condition, "with_state", contains(keys(lifecycle_rule.value.condition), "is_live") ? (lifecycle_rule.value.condition["is_live"] ? "LIVE" : null) : null) matches_storage_class = contains(keys(lifecycle_rule.value.condition), "matches_storage_class") ? split(",", lifecycle_rule.value.condition["matches_storage_class"]) : null