From bc04393217bbfaa9f492bbe2140de1c4f93a10b8 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 13 Jan 2025 17:59:35 -0500 Subject: [PATCH] idk2 --- 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 57aec29..60b208f 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -55,7 +55,7 @@ resource "kubernetes_manifest" "deploy_cluster_roles" { for value in [ for yaml in split( "\n---\n", - "${replace(data.http.cluster_roles[each.key].body, "/(?m)^---[[:blank:]]*(#.*)?$/", "---")}\n" + "${replace(yamldecode(data.http.cluster_roles[each.key].body), "/(?m)^---[[:blank:]]*(#.*)?$/", "---")}\n" ) : yamldecode(yaml) if trimspace(replace(yaml, "/(?m)(^[[:blank:]]*(#.*)?$)+/", "")) != ""