You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(NB step 5 has already had to be specifically run via bash, it doesn't work on cmd.exe)
terraform apply appears to fail on Windows on the default install, either in cmd.exe or bash.exe (from Git).
Expected behavior
The command should run and return without error.
Actual behavior
Error: Error running command 'for i in `seq 1 60`; do if `command -v wget > /dev/null`; then wget --no-check-certificate -O - -q $ENDPOINT/healthz >/dev/null && exit 0 || true; else curl -k -s $ENDPOINT/healthz >/dev/null && exit 0 || true;fi; sleep 5; done; echo TIMEOUT && exit 1': exec: "/bin/sh": file does not exist. Output:
Error: timed out waiting for the condition
on .terraform\modules\eks-jx\modules\vault\charts.tf line 1, in resource "helm_release" "vault-operator":
1: resource "helm_release" "vault-operator" {
terraform-aws-modules/terraform-aws-eks#925 suggests adding an additional section, but doesn't specify where. By trial and error I've found it helps if in the module "eks" { section.
resource "null_resource" "kubeconfig" { also references /bin/bash
module "eks" {
...
# ADD THIS FOR WINDOWS ONLY
wait_for_cluster_interpreter = ["{{Your local path to sh.exe, usually installed with git}}", "-c"]
wait_for_cluster_cmd = "until curl -sk $ENDPOINT >/dev/null; do sleep 4; done"
resource "null_resource" "kubeconfig" {
depends_on = [
module.eks
]
provisioner "local-exec" {
command = "aws eks update-kubeconfig --name ${var.cluster_name} --region=${var.region}"
# CHANGE THIS FOR WINDOWS ONLY
interpreter = ["{{Your local path to bash.exe, also usually installed with git}}", "-c"]
}
}
(As an aside, why is one part depending on sh and another on bash?)
I have Terraform 0.14.11 installed with Jenkins-X 3.2.127 cli on Windows 10.
Following JX3's terraform quickstart guide (https://github.com/jx3-gitops-repositories/jx3-terraform-eks/blob/main/README.md), I've worked through to step 6 -
(NB step 5 has already had to be specifically run via bash, it doesn't work on cmd.exe)
terraform apply
appears to fail on Windows on the default install, either in cmd.exe or bash.exe (from Git).Expected behavior
The command should run and return without error.
Actual behavior
terraform-aws-modules/terraform-aws-eks#925 suggests adding an additional section, but doesn't specify where. By trial and error I've found it helps if in the
module "eks" {
section.resource "null_resource" "kubeconfig" {
also references/bin/bash
Terraform version
Terraform v0.14.11
Operating system
Windows 10, 10.0.19041 N/A Build 19041
The text was updated successfully, but these errors were encountered: