From 87e66bb7af2f88e29db6a9fe1eda9bf53fe119bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Nu=C3=B1o?= Date: Wed, 3 Jul 2024 22:29:19 +0200 Subject: [PATCH] fix: adding "no_age" param in simple bucket (#319) Co-authored-by: Andrew Peabody --- modules/simple_bucket/main.tf | 1 + 1 file changed, 1 insertion(+) 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