diff --git a/terraform/common.tf b/terraform/common.tf index bd69b7f..aec8e3f 100644 --- a/terraform/common.tf +++ b/terraform/common.tf @@ -5,11 +5,11 @@ resource "azurerm_resource_group" "rg" { tags = var.tags } -resource "azurerm_management_lock" "rg_lock" { - count = var.environment == "prd" ? 1 : 0 - - name = "Terraform (CanNotDelete) - ${random_id.lock.hex}" - scope = azurerm_resource_group.rg.id - lock_level = "CanNotDelete" - notes = "CanNotDelete Lock managed by Terraform to prevent manual or accidental deletion of resource group and resources" -} +//resource "azurerm_management_lock" "rg_lock" { +// count = var.environment == "prd" ? 1 : 0 +// +// name = "Terraform (CanNotDelete) - ${random_id.lock.hex}" +// scope = azurerm_resource_group.rg.id +// lock_level = "CanNotDelete" +// notes = "CanNotDelete Lock managed by Terraform to prevent manual or accidental deletion of resource group and resources" +//}