Terragrunt 错误说 terraform 不在 %PATH% 中,即使它是
Terragrunt errors saying terraform not in %PATH% even though it is
我是第一次尝试使用 Terrag运行t。我有 terraform.tfvars 的目录。当我 运行 "terragrunt get" 只是为了开始工作时,我得到:
[terragrunt] 2017/08/08 11:08:14 exec: "terraform": executable file not found in %PATH%
尽管如此,我的道路上有 terraform。有什么问题吗?
我在 Windows 7 机器上使用 Gitbash 作为我的 shell。我每天从 gitbash 中使用 terraform 几次。
$ which terragrunt
/c/WINDOWS/system32/terragrunt
$ which terragrunt
/c/WINDOWS/system32/terragrunt
~/GITS/terra-heroku/us/dev (master)
$ which terraform
/c/WINDOWS/system32/terraform
~/GITS/terra-heroku/us/dev (master)
$ terraform --version
Terraform v0.9.4
Your version of Terraform is out of date! The latest version
is 0.10.0. You can update by downloading from www.terraform.io
~/GITS/terra-heroku/us/dev (master)
$ terragrunt --version
terragrunt version v0.12.25
#cat terraform.tfvars
terragrunt = {
terraform {
source = "git::git@github.com:westfieldcorp/tf-m-heroku-spsr-stack.git"
}
include = {
path = "${find_in_parent_folders()}"
}
}
app_name = "foobar-service"
$ echo $PATH
/c/Users/mr/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/mrashid/bin:/c/ProgramData/Oracle/Java/javapath:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/WebEx/Productivity Tools:/c/Program Files/Lenovo/Touch Fingerprint Software:/c/Program Files (x86)/Sennheiser/SoftphoneSDK:/c/opscode/chefdk/bin:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files/Amazon/AWSCLI:/c/ProgramData/chocolatey/bin:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/idmu/common:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Users/mrashid/AppData/Local/Programs/Python/Python36/Scripts:/c/Users/mrashid/AppData/Local/Programs/Python/Python36:/c/Ruby22/bin:/c/Users/mr/.babun:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Users/mrashid/.babun/cygwin/bin:/c/pstools:/c/Program Files/Heroku/bin:/c/users/mrashid/appdata/Local/programs/python/python36:/usr/bin/vendor_perl:/usr/bin/core_perl
真诚感谢任何帮助。
当 "terraform init" 命令尚未 运行 时会发生这种情况。一旦完成,terrag运行就成功了。
我是第一次尝试使用 Terrag运行t。我有 terraform.tfvars 的目录。当我 运行 "terragrunt get" 只是为了开始工作时,我得到:
[terragrunt] 2017/08/08 11:08:14 exec: "terraform": executable file not found in %PATH%
尽管如此,我的道路上有 terraform。有什么问题吗?
我在 Windows 7 机器上使用 Gitbash 作为我的 shell。我每天从 gitbash 中使用 terraform 几次。
$ which terragrunt
/c/WINDOWS/system32/terragrunt
$ which terragrunt
/c/WINDOWS/system32/terragrunt
~/GITS/terra-heroku/us/dev (master)
$ which terraform
/c/WINDOWS/system32/terraform
~/GITS/terra-heroku/us/dev (master)
$ terraform --version
Terraform v0.9.4
Your version of Terraform is out of date! The latest version
is 0.10.0. You can update by downloading from www.terraform.io
~/GITS/terra-heroku/us/dev (master)
$ terragrunt --version
terragrunt version v0.12.25
#cat terraform.tfvars
terragrunt = {
terraform {
source = "git::git@github.com:westfieldcorp/tf-m-heroku-spsr-stack.git"
}
include = {
path = "${find_in_parent_folders()}"
}
}
app_name = "foobar-service"
$ echo $PATH
/c/Users/mr/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/mrashid/bin:/c/ProgramData/Oracle/Java/javapath:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/WebEx/Productivity Tools:/c/Program Files/Lenovo/Touch Fingerprint Software:/c/Program Files (x86)/Sennheiser/SoftphoneSDK:/c/opscode/chefdk/bin:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files/Amazon/AWSCLI:/c/ProgramData/chocolatey/bin:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/idmu/common:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Users/mrashid/AppData/Local/Programs/Python/Python36/Scripts:/c/Users/mrashid/AppData/Local/Programs/Python/Python36:/c/Ruby22/bin:/c/Users/mr/.babun:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Users/mrashid/.babun/cygwin/bin:/c/pstools:/c/Program Files/Heroku/bin:/c/users/mrashid/appdata/Local/programs/python/python36:/usr/bin/vendor_perl:/usr/bin/core_perl
真诚感谢任何帮助。
当 "terraform init" 命令尚未 运行 时会发生这种情况。一旦完成,terrag运行就成功了。