1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

fix: Add back depends_on for data.wait_for_cluster (#1389)

This commit is contained in:
Thierno IB. BARRY
2021-05-25 11:06:04 +02:00
committed by GitHub
parent 45f3b2f3f3
commit 1f22d24df6
2 changed files with 24 additions and 20 deletions
+12
View File
@@ -83,3 +83,15 @@ data "aws_iam_instance_profile" "custom_worker_group_launch_template_iam_instanc
}
data "aws_partition" "current" {}
data "http" "wait_for_cluster" {
count = var.create_eks && var.manage_aws_auth ? 1 : 0
url = format("%s/healthz", aws_eks_cluster.this[0].endpoint)
ca_certificate = base64decode(coalescelist(aws_eks_cluster.this[*].certificate_authority[0].data, [""])[0])
timeout = 300
depends_on = [
aws_eks_cluster.this,
aws_security_group_rule.cluster_private_access,
]
}