Skip to content

Commit

Permalink
add depends
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jan 13, 2025
1 parent 9760a70 commit 0f2b7ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eks_console_access.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ resource "null_resource" "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 = yamldecode(file("${each.value.name}.yaml"))
depends_on = [null_resource.cluster_roles]
for_each = { for k, v in local.cluster_roles_map : k => v if v.enabled }
manifest = yamldecode(file("${each.value.name}.yaml"))
}

# resource "null_resource" "apply_cluster_roles" {
Expand Down

0 comments on commit 0f2b7ab

Please sign in to comment.