Skip to content

Commit

Permalink
fix: adding "no_age" param in simple bucket (#319)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
jjnunogarcia and apeabody authored Jul 3, 2024
1 parent aa7c57e commit 87e66bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/simple_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87e66bb

Please sign in to comment.