diff --git a/eks_console_access.tf b/eks_console_access.tf index ddf1ca3..efb64d3 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 name, url in local.cluster_roles_map : [yamldecode(data.http.cluster_roles[name].body)]]) + all_access_documents = flatten([for name, cr in local.cluster_roles_map : [yamldecode(data.http.cluster_roles[name].body)]]) } # Fetch the YAML files from the specified URLs