Skip to content

Commit

Permalink
fix: Add node_group direct dependency on eks_cluster (#796)
Browse files Browse the repository at this point in the history
Setting `manage_aws_auth = false` removes the ordering dependency
between node_group and eks_cluster generating an error on first apply.
This fixes that use case.

Fixes #793
  • Loading branch information
dpiddockcmp authored Mar 18, 2020
1 parent 50f5f8b commit 89401f1
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 = var.cluster_name
cluster_name = aws_eks_cluster.this[0].name

# 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 89401f1

Please sign in to comment.