Skip to content

Commit

Permalink
do not depend on aws_auth configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
gminiba authored and Gumar Minibaev committed May 30, 2023
1 parent b95889c commit 55aad2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aws-auth-configmap.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "kubernetes_config_map" "aws_auth" {
count = var.create_eks&&var.cluster_manage_aws_auth ? 1 : 0
count = var.create_eks && var.cluster_manage_aws_auth ? 1 : 0

metadata {
name = "aws-auth"
Expand Down
6 changes: 3 additions & 3 deletions eks-worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "aws_eks_managed_node_groups" {
managed_ng = each.value
context = local.node_group_context

depends_on = [kubernetes_config_map.aws_auth]
depends_on = [module.aws_eks.cluster_id, data.http.eks_cluster_readiness[0]]
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -25,7 +25,7 @@ module "aws_eks_self_managed_node_groups" {
self_managed_ng = each.value
context = local.node_group_context

depends_on = [kubernetes_config_map.aws_auth]
depends_on = [module.aws_eks.cluster_id, data.http.eks_cluster_readiness[0]]
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -40,5 +40,5 @@ module "aws_eks_fargate_profiles" {
fargate_profile = each.value
context = local.fargate_context

depends_on = [kubernetes_config_map.aws_auth]
depends_on = [module.aws_eks.cluster_id, data.http.eks_cluster_readiness[0]]
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module "emr_on_eks" {
iam_role_permissions_boundary = var.iam_role_permissions_boundary
tags = var.tags

depends_on = [kubernetes_config_map.aws_auth]
depends_on = [module.aws_eks.cluster_id, data.http.eks_cluster_readiness[0]]
}

resource "kubernetes_config_map" "amazon_vpc_cni" {
Expand Down

0 comments on commit 55aad2c

Please sign in to comment.