-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Not able to execute the script wait-for-cluster.sh #413
Comments
Facing the same issue, any thoughts on how to resolve this? |
I'm not really sure what could be causing this truthfully. It looks like the script is there, yet it's somehow not being executed? Could you try directly executing the script (outside Terraform)? |
I am using Terraform cloud, so that's not an option |
Error: Error running command '.terraform/modules/gke/terraform-google-modules-terraform-google-kubernetes-engine-1d4c858/scripts/wait-for-cluster.sh friendly-path-269502 simple-regional-cluster-pih-sandbox': exit status 127. .terraform/modules/gke/terraform-google-modules-terraform-google-kubernetes-engine-1d4c858/scripts/wait-for-cluster.sh: line 28: gcloud: command not found |
I get the same issue... The cluster is good, but the job is marked as "passed with warnings" in my Gitlab CICD. So not really cool ;) I try few thinkgs but don't find a solution for now I add an "ls" and try to execute the script manually without success.
|
I suspect the issue might be running in an environment where bash is not available. We should change the script to specify |
Just to let you know, I try to change my gitlab-runner from "docker" to "shell" and with that, the script is working fine. So maybe the "not found" is coming from the "gcloud" package that is missing in the "terraform:light" docker image. |
My issue was exactly that, I am running terraform in a docker container and bash was not available. |
For me, this error went away when I copied all the files in this module to a local directory, I'm also using terragrunt, so that might be a complicating factor. Earlier I had tried setting |
any idea how to overcome the issue of not having the gcloud command when running in Terraform Cloud environment? |
Hi @llnformer Additionally with the Closing this issue out now, feel free to reopen if needed. |
@bharathkkb you mean |
Hi,
I am facing issue when consuming the module private-cluster. I get the following error:
I am using the hashicorp/terraform:0.12.16 image.
I connected to the running container and tried executing the file manually but I got the same error.
I validated the permission on the file, they are +x.
Let me know if you would want more details.
Thanks,
Tarun
The text was updated successfully, but these errors were encountered: