Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the cost_analysis_enabled property on Aks #2042

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ aks_clusters = {
resource_group_key = "aks_re1"
os_type = "Linux"

cost_analysis_enabled = true

identity = {
type = "SystemAssigned"
}
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading