Skip to content

Commit

Permalink
fix(TPG>=5.43)!: replacing "no_age" -> "send_age_if_zero" (#340)
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 Oct 2, 2024
1 parent 464e78d commit f40bf31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ resource "google_storage_bucket" "buckets" {
}
condition {
age = lookup(lifecycle_rule.value.condition, "age", null)
send_age_if_zero = lookup(lifecycle_rule.value.condition, "send_age_if_zero", 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
2 changes: 1 addition & 1 deletion modules/simple_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +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)
send_age_if_zero = lookup(lifecycle_rule.value.condition, "send_age_if_zero", 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
2 changes: 1 addition & 1 deletion modules/simple_bucket/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = ">= 5.22, < 7"
version = ">= 5.43.0, < 7"
}
}

Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = ">= 5.22, < 7"
version = ">= 5.43.0, < 7"
}

random = {
Expand Down

0 comments on commit f40bf31

Please sign in to comment.