Skip to content

Commit

Permalink
feat: backups bucket lifecycle rule (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
krtk6160 authored Jun 10, 2024
1 parent 446624d commit eb527a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/inception/gcp/backups-bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit eb527a5

Please sign in to comment.