Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
barryib marked this conversation as resolved.
Show resolved Hide resolved

inputs = {
cluster_name = aws_eks_cluster.this[0].name
cluster_name = coalescelist(aws_eks_cluster.this[*].name, [""])[0]
barryib marked this conversation as resolved.
Show resolved Hide resolved

# Ensure these resources are created before "unlocking" the data source.
# `depends_on` causes a refresh on every run so is useless here.
Expand Down