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

Problem provisioning (wget issue) #14

Closed
sehz opened this issue Jul 24, 2020 · 6 comments · Fixed by #64
Closed

Problem provisioning (wget issue) #14

sehz opened this issue Jul 24, 2020 · 6 comments · Fixed by #64

Comments

@sehz
Copy link

sehz commented Jul 24, 2020

I am getting following error which something to do with wget.

ks.aws_launch_configuration.workers[1]: Still creating... [10s elapsed]
module.eks.aws_launch_configuration.workers[0]: Creation complete after 10s [id=training-eks-W5YjPdfh-worker-group-120200724013458477900000010]
module.eks.aws_launch_configuration.workers[1]: Creation complete after 10s [id=training-eks-W5YjPdfh-worker-group-220200724013458484400000011]
module.eks.random_pet.workers[0]: Creating...
module.eks.random_pet.workers[1]: Creating...
module.eks.random_pet.workers[0]: Creation complete after 0s [id=capable-snipe]
module.eks.random_pet.workers[1]: Creation complete after 0s [id=deep-wombat]
module.eks.aws_autoscaling_group.workers[0]: Creating...
module.eks.aws_autoscaling_group.workers[1]: Creating...
module.eks.null_resource.wait_for_cluster[0] (local-exec): /bin/sh: wget: command not found
module.eks.null_resource.wait_for_cluster[0]: Still creating... [20s elapsed]
module.eks.null_resource.wait_for_cluster[0] (local-exec): /bin/sh: wget: command not found
module.eks.aws_autoscaling_group.workers[0]: Still creating... [10s elapsed]
module.eks.aws_autoscaling_group.workers[1]: Still creating... [10s elapsed]
@MEOWMEOW114
Copy link

I faced the same issue,
and found this is the workaround

@im2nguyen
Copy link
Collaborator

Thanks @MEOWMEOW114

To address this issue, add the following to your module "eks" {} in eks-cluster.tf.

module "eks" {
   ...
+  wait_for_cluster_cmd  = "until curl -k -s $ENDPOINT/healthz >/dev/null; do sleep 4; done"
}

@im2nguyen im2nguyen pinned this issue Aug 18, 2020
@im2nguyen im2nguyen changed the title Problem provisioning Problem provisioning (wget issue) Aug 18, 2020
@tanakamapondera
Copy link

@im2nguyen I don't know what I'm doing wrong but that solution does not work for me sadly. This is the errow message I am getting:
Error: Error running command 'until curl -k -s $ENDPOINT/healthz >/dev/null; do sleep 4; done': exec: "/bin/sh": file does not exist. Output:

@im2nguyen
Copy link
Collaborator

@tanakamapondera , what OS and Terraform version are you using? It seems like your system doesn't have bash.

This terraform-aws-modules/terraform-aws-eks#925 (comment) comment includes a workaround for Window machines. Please let me know if that works!

@HormCodes
Copy link

On OSX: Installing wget using Homebrew can also fix the issue: brew install wget.

@alanszlosek
Copy link
Contributor

This should now be fixed by #65. Please let us know if you are still having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants