Skip to content

Commit

Permalink
FIX: fix data block, data block was calling before eks cluster creati…
Browse files Browse the repository at this point in the history
…on (#66)

* FIX: fix data block, data block was calling before eks cluster creation

* FIX: add dependency on eks_auth data block
  • Loading branch information
nileshgadgi authored Sep 4, 2024
1 parent b8834b6 commit a48263e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "null_resource" "wait_for_cluster" {

data "aws_eks_cluster" "eks" {
count = var.enabled && var.apply_config_map_aws_auth ? 1 : 0
name = module.labels.id
name = aws_eks_cluster.default[0].id
}

# Get an authentication token to communicate with the EKS cluster.
Expand All @@ -84,7 +84,7 @@ data "aws_eks_cluster" "eks" {
# https://www.terraform.io/docs/providers/aws/d/eks_cluster_auth.html
data "aws_eks_cluster_auth" "eks" {
count = var.enabled && var.apply_config_map_aws_auth ? 1 : 0
name = module.labels.id
name = aws_eks_cluster.default[0].id
}

provider "kubernetes" {
Expand Down

0 comments on commit a48263e

Please sign in to comment.