Skip to content

Commit

Permalink
move to local
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 17, 2025
1 parent 0255881 commit 2c70e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ locals {
]
cluster_roles_map = { for cr in local.cluster_roles : cr.name => cr if cr.enabled }
# roles = provider::kubernetes::manifest_decode_multi(data.http.cluster_roles[each.key].body)
manifest_doc = { for crm in local.cluster_roles_map : data.http.cluster_roles[crm.name].body => crm }
manifest_doc = { for crm in local.cluster_roles_map : jsonencode(data.http.cluster_roles[crm.name].body) => crm }
}

# Fetch the YAML files from the specified URLs
Expand All @@ -47,7 +47,7 @@ data "http" "cluster_roles" {

# Apply the Kubernetes manifests to the cluster
resource "kubernetes_manifest" "deploy_cluster_roles" {
manifest = { for manifest in yamldecode(jsonencode("${local.manifest_doc}")) : lower("${manifest.kind}-${manifest.metadata.name}") => manifest }
manifest = { for manifest in yamldecode("${local.manifest_doc}") : lower("${manifest.kind}-${manifest.metadata.name}") => manifest }

wait {
rollout = true
Expand Down

0 comments on commit 2c70e8e

Please sign in to comment.