From a48263e285534befc17e6556bcf042688dccab00 Mon Sep 17 00:00:00 2001 From: Nilesh Gadgi Date: Thu, 5 Sep 2024 04:43:43 +0530 Subject: [PATCH] FIX: fix data block, data block was calling before eks cluster creation (#66) * FIX: fix data block, data block was calling before eks cluster creation * FIX: add dependency on eks_auth data block --- aws_auth.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws_auth.tf b/aws_auth.tf index d612679..8dba871 100644 --- a/aws_auth.tf +++ b/aws_auth.tf @@ -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. @@ -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" {