From 527d4bd3f512d39ace05728d1f34064a90824e15 Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Thu, 7 May 2020 09:17:05 +0200 Subject: [PATCH] fix: Use splat syntax for cluster name to avoid `(known after apply)` in managed node groups (#868) --- node_groups.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_groups.tf b/node_groups.tf index 5c2b92eb4e..8ead35b89e 100644 --- a/node_groups.tf +++ b/node_groups.tf @@ -4,7 +4,7 @@ data "null_data_source" "node_groups" { count = var.create_eks ? 1 : 0 inputs = { - cluster_name = aws_eks_cluster.this[0].name + cluster_name = coalescelist(aws_eks_cluster.this[*].name, [""])[0] # Ensure these resources are created before "unlocking" the data source. # `depends_on` causes a refresh on every run so is useless here.