Skip to content

Commit

Permalink
maybe build a map
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 13, 2025
1 parent cd4ce1c commit cf3869a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data "http" "cluster_roles" {
resource "kubernetes_manifest" "deploy_cluster_roles" {
# depends_on = [null_resource.cluster_roles]
for_each = { for k, v in local.cluster_roles_map : k => v if v.enabled }
manifest = yamldecode(jsonencode(data.http.cluster_roles[each.key].body))
manifest = join(",", [each.key, yamldecode(data.http.cluster_roles[each.key].body)])
}

# resource "null_resource" "apply_cluster_roles" {
Expand Down

0 comments on commit cf3869a

Please sign in to comment.