improvement: Add timeout to default wait_for_cluster_cmd (#791)

This commit is contained in:
Daniel Piddock
2020-03-17 19:06:09 +01:00
committed by GitHub
parent cd8a825a5a
commit 2c98a00b21
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ variable "cluster_delete_timeout" {
variable "wait_for_cluster_cmd" {
description = "Custom local-exec command to execute for determining if the eks cluster is healthy. Cluster endpoint will be available as an environment variable called ENDPOINT"
type = string
default = "until wget --no-check-certificate -O - -q $ENDPOINT/healthz >/dev/null; do sleep 4; done"
default = "for i in `seq 1 60`; do wget --no-check-certificate -O - -q $ENDPOINT/healthz >/dev/null && exit 0 || true; sleep 5; done; echo TIMEOUT && exit 1"
}
variable "cluster_create_security_group" {