From eb527a54c2917e26ce25e3765bcde5d343bd7671 Mon Sep 17 00:00:00 2001 From: Kartik Shah Date: Mon, 10 Jun 2024 08:02:15 +0000 Subject: [PATCH] feat: backups bucket lifecycle rule (#184) --- modules/inception/gcp/backups-bucket.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/inception/gcp/backups-bucket.tf b/modules/inception/gcp/backups-bucket.tf index 08470227..d21ecc6d 100644 --- a/modules/inception/gcp/backups-bucket.tf +++ b/modules/inception/gcp/backups-bucket.tf @@ -8,6 +8,16 @@ resource "google_storage_bucket" "backups" { is_locked = true retention_period = 2592000 } + + lifecycle_rule { + action { + type = "Delete" + } + + condition { + age = 90 + } + } } resource "google_service_account" "backups" {