diff --git a/premerge/gke_cluster/main.tf b/premerge/gke_cluster/main.tf index b556fb265..47e70fbf0 100644 --- a/premerge/gke_cluster/main.tf +++ b/premerge/gke_cluster/main.tf @@ -175,6 +175,15 @@ resource "google_storage_bucket" "object_cache_linux" { soft_delete_policy { retention_duration_seconds = 0 } + + lifecycle_rule { + action { + type = "Delete" + } + condition { + days_since_noncurrent_time = 1 + } + } } resource "google_storage_bucket" "object_cache_windows" { @@ -187,6 +196,15 @@ resource "google_storage_bucket" "object_cache_windows" { soft_delete_policy { retention_duration_seconds = 0 } + + lifecycle_rule { + action { + type = "Delete" + } + condition { + days_since_noncurrent_time = 1 + } + } } resource "google_service_account" "object_cache_linux_gsa" {