From 96bb368b202eb700a47c2dd1abb72d03d5fd8aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Toma=C5=A1i=C4=87?= Date: Wed, 20 Nov 2019 12:52:06 +0000 Subject: [PATCH] Update cluster referencing for consistency --- data.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data.tf b/data.tf index 38e60a96..4333c65e 100644 --- a/data.tf +++ b/data.tf @@ -118,9 +118,9 @@ data "template_file" "userdata" { vars = merge({ platform = lookup(var.worker_groups[count.index], "platform", local.workers_group_defaults["platform"]) - cluster_name = aws_eks_cluster.this[count.index].name - endpoint = aws_eks_cluster.this[count.index].endpoint - cluster_auth_base64 = aws_eks_cluster.this[count.index].certificate_authority[0].data + cluster_name = aws_eks_cluster.this[0].name + endpoint = aws_eks_cluster.this[0].endpoint + cluster_auth_base64 = aws_eks_cluster.this[0].certificate_authority[0].data pre_userdata = lookup( var.worker_groups[count.index], "pre_userdata",