Skip to content

Commit 87360d9

Browse files
fix: remove invalid with_state=NONCURRENT from lifecycle rule
The Google provider only accepts LIVE, ARCHIVED, or ANY for with_state. Non-current version cleanup is controlled by days_since_noncurrent_time alone — the condition implicitly applies to non-current objects. Co-authored-by: Ona <no-reply@ona.com>
1 parent 7df28a3 commit 87360d9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

storage.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ resource "google_storage_bucket" "agent_storage" {
246246
lifecycle_rule {
247247
condition {
248248
days_since_noncurrent_time = 90
249-
with_state = "NONCURRENT"
250249
}
251250
action {
252251
type = "Delete"

0 commit comments

Comments
 (0)