Skip to content

Commit 3bdcfba

Browse files
feat: Enable ACR password access
1 parent b349918 commit 3bdcfba

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

modules/container_registry/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ resource "azurerm_container_registry" "acr" {
33
resource_group_name = var.resource_group_name
44
location = var.region_name
55
sku = var.acr_sku
6-
admin_enabled = false
6+
admin_enabled = true
7+
8+
lifecycle {
9+
prevent_destroy = true
10+
}
711
}

modules/environment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module "webapp" {
101101
azure_blob_account_name = module.storage_account.storage_account_name
102102
azure_ad_client_id = var.azure_ad_client_id
103103
azure_ad_tenant_id = var.azure_ad_tenant_id
104-
location = var.region_name
104+
location = var.region_name
105105
}
106106

107107
module "cloai_service" {

modules/key_vault/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ resource "azurerm_key_vault" "kv" {
2626
environment = var.environment_name
2727
project = var.project_name
2828
}
29+
30+
lifecycle {
31+
prevent_destroy = true
32+
}
2933
}
3034

3135
resource "azurerm_role_assignment" "terraform_kv_secrets_officer" {

0 commit comments

Comments
 (0)