Skip to content

Commit

Permalink
Update Terraform lock
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Feb 8, 2024
1 parent 8a9bab4 commit d5c3d03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/app_data_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ resource "azurerm_storage_account" "app_data_storage" {
}

resource "azurerm_management_lock" "app_data_storage_lock" {
count = var.environment == "prd" ? 1 : 0

name = "Terraform (CanNotDelete) - ${random_id.lock.hex}"
scope = azurerm_storage_account.app_data_storage.id
lock_level = "CanNotDelete"
Expand Down

0 comments on commit d5c3d03

Please sign in to comment.