1

在我的 Windows 机器istioctl.exe上,我的 PATH 上有。当我运行它时local-exec,它可以工作。

  provisioner "local-exec" {
    interpreter = ["bash", "-c"]
    working_dir = "${path.module}/tmp"
    command     = <<EOH
istioctl version --remote=false;
    EOH
  }

对于 Terraform Cloud,我首先下载istioctl并将其放在${path.module}/tmp. 但我需要将local-exec以上内容更改为./istioctl version --remote=false;.

对于 TFC,有没有办法添加istioctl到,PATH所以我不必使用./?

4

0 回答 0