其實terraform和terragrunt都是單個文件,直接放在/usr/local/ bin下作爲全局命令即可。
terraform:
安裝指定版本:
linux:
sudo yum install wegt unzip
wget https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_linux_amd64.zip
unzip terraform_0.11.14_linux_amd64.zip
cp terraform /usr/local/bin
macos
brew search terraform
brew install [email protected]
terragrunt:
安裝指定版本:
linux:
macos:
去github上找到terragrunt,
下載之後不用安裝,我是放在/usr/local/Cellar/[email protected]/0.11.14/bin/terragrunt_darwin_amd64目錄裏了。
然後在/usr/local/bin 下使用ln -s terragrunt /usr/local/Cellar/[email protected]/0.11.14/bin/terragrunt_darwin_amd64