From 0ab01dc6fac17e96788bc8e5514b2c60a2cd42fa Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Thu, 16 Jan 2025 23:17:03 -0500 Subject: [PATCH] maybe --- eks_console_access.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eks_console_access.tf b/eks_console_access.tf index 61994cc..5fc6719 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -26,7 +26,7 @@ locals { ] cluster_roles_map = { for cr in local.cluster_roles : cr.name => cr if cr.enabled } # roles = provider::kubernetes::manifest_decode_multi(data.http.cluster_roles[each.key].body) - manifest_doc = { for crm in local.cluster_roles_map : jsonencode(data.http.cluster_roles[crm.name].body) => crm } + manifest_doc = { for name in local.cluster_roles_map : yamldecode(data.http.cluster_roles[name].body) => crm } } # Fetch the YAML files from the specified URLs @@ -47,7 +47,7 @@ data "http" "cluster_roles" { # Apply the Kubernetes manifests to the cluster resource "kubernetes_manifest" "deploy_cluster_roles" { - manifest = { for manifest in yamldecode("${local.manifest_doc}") : lower("${manifest.kind}-${manifest.metadata.name}") => manifest } + manifest = local.manifest_doc wait { rollout = true