Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default value for wait_for_cluster_cmd #750

Merged
merged 4 commits into from
Feb 27, 2020
Merged

change default value for wait_for_cluster_cmd #750

merged 4 commits into from
Feb 27, 2020

Conversation

daroga0002
Copy link
Contributor

PR o'clock

Description

This is addressing #741

Currently after creating eks cluster there is local-exec loop checking availability of API endpoint

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 curl -k -s $ENDPOINT/healthz >/dev/null; do sleep 4; done"
}

This behaviour is working totally fine, but it require installed curl, which is missing in official Hashicorp docker image ( hashicorp/terraform ). Instead there is wget:

$ docker run -ti --entrypoint='' hashicorp/terraform sh
/ # which curl 
/ # which wget
/usr/bin/wget

This can be workaround by using following input module variable:

wait_for_cluster_cmd = "until wget --no-check-certificate -O - -q $ENDPOINT/healthz >/dev/null; do sleep 4; done"

So proposing to switch default to wget what will allow running module in automated CI processes using Hashicorp docker environment.

Checklist

daroga0002 and others added 4 commits February 26, 2020 14:16
@max-rocket-internet
Copy link
Contributor

So proposing to switch default to wget what will allow running module in automated CI processes using Hashicorp docker environment.

Awesome 👍

Copy link
Contributor

@max-rocket-internet max-rocket-internet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @daroga0002 💛

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants