Skip to content

Commit

Permalink
fix: Use splat syntax for cluster name to avoid (known after apply)
Browse files Browse the repository at this point in the history
… in managed node groups (#868)
  • Loading branch information
barryib authored May 7, 2020
1 parent 312596f commit 527d4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 527d4bd

Please sign in to comment.