Skip to content

Commit

Permalink
add name hack
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 17, 2025
1 parent 6bcc94c commit 84d9434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ data "http" "cluster_roles" {
# }
# }

# # Apply the Kubernetes manifests to the cluster
# Apply the Kubernetes manifests to the cluster
resource "kubernetes_manifest" "deploy_cluster_roles" {
for_each = { for doc in local.cluster_roles_map : provider::kubernetes::manifest_decode_multi(doc) => doc if doc.metadata }
manifest = each.value
for_each = local.cluster_roles_map
manifest = { for manifest in provider::kubernetes::manifest_decode_multi(data.http.cluster_roles[each.key].body) : "${lower(manifest.kind)}-${manifest.metadata.name}-${manifest.metadata.namespace}" => manifest }
}

# resource "kubernetes_manifest" "projects" {
Expand Down

0 comments on commit 84d9434

Please sign in to comment.