diff --git a/aks/locals.tf b/aks/locals.tf index 7d26e85..4f21207 100644 --- a/aks/locals.tf +++ b/aks/locals.tf @@ -16,7 +16,7 @@ locals { helm_values = [{ kube-prometheus-stack = { - prometheus = local.use_managed_identity ? { + prometheus = merge(local.use_managed_identity ? { serviceAccount = { annotations = { "azure.workload.identity/client-id" = resource.azurerm_user_assigned_identity.prometheus[0].client_id @@ -29,7 +29,7 @@ locals { } } } - } : null + } : null, {}) } }] }