Skip to content

Commit

Permalink
chore: adding delete retention and versioning to bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
florianow committed Mar 13, 2024
1 parent d3ebf60 commit e7cf797
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kit/azure/bootstrap/terraform-state/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ resource "azurerm_storage_account" "tfstates" {
account_tier = "Standard"
account_replication_type = "GRS"
shared_access_key_enabled = false
blob_properties {
versioning_enabled = true
delete_retention_policy {
days = 30
}
container_delete_retention_policy {
days = 30
}
}

lifecycle { ignore_changes = [tags] }
}

resource "azurerm_storage_container" "tfstates" {
Expand Down

0 comments on commit e7cf797

Please sign in to comment.