Skip to content

Commit

Permalink
fix(TPG>=6): remove deprecated no_age
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Oct 1, 2024
1 parent 1cf8cec commit 8ec5698
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/simple_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "google_storage_bucket" "bucket" {
labels = var.labels
force_destroy = var.force_destroy
public_access_prevention = var.public_access_prevention

versioning {
enabled = var.versioning
}
Expand Down Expand Up @@ -81,7 +81,6 @@ 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 8ec5698

Please sign in to comment.