From 0c26103707d5d67b43f4ec672469cf3498451732 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 13 Jan 2025 15:47:38 -0500 Subject: [PATCH] use cr_url via map --- eks_console_access.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks_console_access.tf b/eks_console_access.tf index af35436..ad3bf20 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -25,7 +25,7 @@ locals { }, ] cluster_roles_map = { for cr in local.cluster_roles : cr.name => cr if cr.enabled } - all_access_documents = flatten([for cr_name, cr_url in local.cluster_roles_map : [yamldecode(data.http.cluster_roles[cr_url])] if cr_data.enabled]) + all_access_documents = flatten([for name, url in local.cluster_roles : [yamldecode(data.http.cluster_roles[name].body)]]) } # Fetch the YAML files from the specified URLs