We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa9c2b commit 2c9ae2eCopy full SHA for 2c9ae2e
aks.tf
@@ -96,7 +96,7 @@ module "aks" {
96
}
97
98
resource "azurerm_monitor_diagnostic_setting" "cluster_autoscaler_diagnostic" {
99
- count = var.log_analytics_workspace_enabled ? 1 : 0
+ count = var.use_existing_cluster ? 0 : var.log_analytics_workspace_enabled ? 1 : 0
100
name = local.log_analytics_cluster_autoscaler_diagnostic_name
101
target_resource_id = module.aks[0].aks_id
102
0 commit comments