fix: Use splat syntax for cluster name to avoid (known after apply) in managed node groups (#868)

This commit is contained in:
Thierno IB. BARRY
2020-05-07 09:17:05 +02:00
committed by GitHub
parent 312596f46d
commit 527d4bd3f5

View File

@@ -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.