Skip to content

Commit

Permalink
feat: Add deletion protection to blob container and account
Browse files Browse the repository at this point in the history
  • Loading branch information
venky-wandb committed Sep 21, 2024
1 parent 1020ee1 commit 89d9ba0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/secure_storage_connector/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ module "storage" {
blob_container_name = var.namespace

deletion_protection = var.deletion_protection

blob_properties = {
delete_retention_policy = {
enabled = var.deletion_protection
days = 365
}

container_delete_retention_policy = {
enabled = var.deletion_protection
days = 7
}
}
}

resource "azurerm_role_assignment" "account" {
Expand Down

0 comments on commit 89d9ba0

Please sign in to comment.