mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-30 20:34:37 +02:00
fix: Use splat syntax for cluster name to avoid (known after apply) in managed node groups (#868)
This commit is contained in:
committed by
GitHub
parent
312596f46d
commit
527d4bd3f5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user