docs: Better documentation of cluster_id output blocking (#955)

NOTES: Starting in v12.1.0 the `cluster_id` output depends on the
`wait_for_cluster` null resource. This means that initialisation of the
kubernetes provider will be blocked until the cluster is really ready,
if the module is set to manage the aws_auth ConfigMap and user followed
the typical Usage Example. kubernetes resources in the same plan do not
need to depend on anything explicitly.
This commit is contained in:
Daniel Piddock
2020-08-12 15:22:24 +02:00
committed by GitHub
parent 3d2f7d28c1
commit 9ace344c57
3 changed files with 10 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
output "cluster_id" {
description = "The name/id of the EKS cluster."
description = "The name/id of the EKS cluster. Will block on cluster creation until the cluster is really ready"
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