Skip to content

Commit e7cf797

Browse files
committed
chore: adding delete retention and versioning to bucket
1 parent d3ebf60 commit e7cf797

File tree

1 file changed

+11
-0
lines changed
  • kit/azure/bootstrap/terraform-state

1 file changed

+11
-0
lines changed

kit/azure/bootstrap/terraform-state/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ resource "azurerm_storage_account" "tfstates" {
1616
account_tier = "Standard"
1717
account_replication_type = "GRS"
1818
shared_access_key_enabled = false
19+
blob_properties {
20+
versioning_enabled = true
21+
delete_retention_policy {
22+
days = 30
23+
}
24+
container_delete_retention_policy {
25+
days = 30
26+
}
27+
}
28+
29+
lifecycle { ignore_changes = [tags] }
1930
}
2031

2132
resource "azurerm_storage_container" "tfstates" {

0 commit comments

Comments
 (0)