Skip to content

Commit

Permalink
Remove lock temp
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Feb 8, 2024
1 parent d5c3d03 commit d491002
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions terraform/sql_database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
//}

0 comments on commit d491002

Please sign in to comment.