diff --git a/terraform/sql_database.tf b/terraform/sql_database.tf index 858350c7..b24aceb6 100644 --- a/terraform/sql_database.tf +++ b/terraform/sql_database.tf @@ -9,11 +9,11 @@ resource "azurerm_mssql_database" "repo" { max_size_gb = 2 } -resource "azurerm_management_lock" "repo_lock" { - count = var.environment == "prd" ? 1 : 0 - - name = "Terraform (CanNotDelete) - ${random_id.lock.hex}" - scope = azurerm_mssql_database.repo.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" "repo_lock" { +// count = var.environment == "prd" ? 1 : 0 +// +// name = "Terraform (CanNotDelete) - ${random_id.lock.hex}" +// scope = azurerm_mssql_database.repo.id +// lock_level = "CanNotDelete" +// notes = "CanNotDelete Lock managed by Terraform to prevent manual or accidental deletion of resource group and resources" +//}