diff --git a/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars b/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars index a55d375ee9..87218b10ff 100644 --- a/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars +++ b/examples/compute/kubernetes_services/101-single-cluster/aks.tfvars @@ -18,6 +18,8 @@ aks_clusters = { resource_group_key = "aks_re1" os_type = "Linux" + cost_analysis_enabled = true + identity = { type = "SystemAssigned" } diff --git a/modules/compute/aks/aks.tf b/modules/compute/aks/aks.tf index 3ac8887a23..0ace42bb06 100644 --- a/modules/compute/aks/aks.tf +++ b/modules/compute/aks/aks.tf @@ -161,7 +161,7 @@ resource "azurerm_kubernetes_cluster" "aks" { subnet_name = aci_connector_linux.value.subnet_name } } - + cost_analysis_enabled = try(var.settings.cost_analysis_enabled, null) azure_policy_enabled = can(var.settings.addon_profile.azure_policy) || can(var.settings.azure_policy_enabled) == false ? try(var.settings.addon_profile.azure_policy.0.enabled, null) : var.settings.azure_policy_enabled http_application_routing_enabled = can(var.settings.addon_profile.http_application_routing) || can(var.settings.http_application_routing_enabled) == false ? try(var.settings.addon_profile.http_application_routing.0.enabled, null) : var.settings.http_application_routing_enabled