From c748899d0e512f4c27558a7ee8a48d426c788985 Mon Sep 17 00:00:00 2001 From: Daniel Piddock <33028589+dpiddockcmp@users.noreply.github.com> Date: Fri, 29 May 2020 17:45:24 +0200 Subject: [PATCH] cluster_id blocks on wait_for_cluster (#890) --- outputs.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/outputs.tf b/outputs.tf index 8ec702f..ae91414 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,6 +1,9 @@ output "cluster_id" { description = "The name/id of the EKS cluster." value = element(concat(aws_eks_cluster.this.*.id, list("")), 0) + # So that calling plans wait for the cluster to be available before attempting + # to use it. They will not need to duplicate this null_resource + depends_on = [null_resource.wait_for_cluster] } output "cluster_arn" {