pelias / terraform-elasticsearch

Terraform scripts for running an Elasticsearch cluster
10 stars 6 forks source link

tunable elastic_wait.sh vars #30

Closed missinglink closed 3 weeks ago

missinglink commented 2 months ago

this PR allows the environment variables used by ~/elastic_wait.sh to be tunable.

# note: moved to shell script rather than being inline in a template file due to:
# https://github.com/terraform-providers/terraform-provider-template/issues/51

ELASTIC_RETRY_COUNT=${ELASTIC_RETRY_COUNT:-30}
ELASTIC_RETRY_TIMEOUT=${ELASTIC_RETRY_TIMEOUT:-1}

function elastic_status(){
  curl \