diff --git a/modules/app_aks/main.tf b/modules/app_aks/main.tf index 4159b82..9043da5 100644 --- a/modules/app_aks/main.tf +++ b/modules/app_aks/main.tf @@ -25,7 +25,7 @@ resource "azurerm_kubernetes_cluster" "default" { type = "VirtualMachineScaleSets" vm_size = var.node_pool_vm_size vnet_subnet_id = var.cluster_subnet_id - zones = ["1", "2"] + zones = var.location == "westus" ? [] : ["1", "2"] } identity { diff --git a/modules/storage/main.tf b/modules/storage/main.tf index a318b34..439bd47 100644 --- a/modules/storage/main.tf +++ b/modules/storage/main.tf @@ -3,7 +3,7 @@ resource "azurerm_storage_account" "default" { resource_group_name = var.resource_group_name location = var.location account_tier = "Standard" - account_replication_type = "ZRS" + account_replication_type = var.location == "westus" ? "LRS" : "ZRS" min_tls_version = "TLS1_2" blob_properties {