Skip to content

Commit

Permalink
write map
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 14, 2025
1 parent 321a66d commit ec24288
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ data "http" "cluster_roles" {
# # Apply the Kubernetes manifests to the cluster
resource "kubernetes_manifest" "deploy_cluster_roles" {
for_each = { for k, v in local.cluster_roles_map : k => v if v.enabled }
manifest = [provider::kubernetes::manifest_decode_multi(data.http.cluster_roles[each.key].body)]
manifest = {
name = data.http.cluster_roles[each.key]
value = provider::kubernetes::manifest_decode_multi(data.http.cluster_roles[each.key].body)
}
# manifest = [split("---\n", data.http.cluster_roles[each.key].body)]
}

Expand Down

0 comments on commit ec24288

Please sign in to comment.