fix: Add node_group direct dependency on eks_cluster (#796)

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
This commit is contained in:
Daniel Piddock
2020-03-18 09:09:32 +01:00
committed by GitHub
parent 50f5f8b874
commit 89401f1623

View File

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