Skip to content

Commit

Permalink
feat: Bucket versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-piechowicz-wandb committed Dec 22, 2023
1 parent 430f143 commit d4bacf8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/storage/bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ resource "google_storage_bucket" "file_storage" {
uniform_bucket_level_access = true
force_destroy = !var.deletion_protection

versioning {
enabled = true
}
lifecycle_rule {
condition {
days_since_noncurrent_time = 30
}
action {
type = "Delete"
}
}

labels = var.labels

cors {
Expand Down

0 comments on commit d4bacf8

Please sign in to comment.