Terraform Installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
=Mac Installation= | =Mac Installation= | ||
Download from https://www.terraform.io/downloads.html. | ==Manual Installation== | ||
In case you need to switch back and forth between Terraform versions on the same system, manual installation is preferable to a brew-driven installation. | |||
Download the latest version from https://www.terraform.io/downloads.html. | |||
Older versions can be downloaded from https://releases.hashicorp.com/terraform/. | |||
cd /opt | |||
mkdir ./terraform | |||
wget wget https://releases.hashicorp.com/terraform/0.12.13/terraform_0.12.13_darwin_amd64.zip | |||
unzip terraform_0.12.13_darwin_amd64.zip | |||
mv terraform terraform-0.12.13 | |||
rm terraform_0.12.13_darwin_amd64.zip | |||
cd /usr/local/bin | |||
ln -s /opt/terraform/terraform-0.12.13 ./terraform | |||
==Brew== | |||
Note that is a bit complicated to switch between terraform version when Terraform is installed with brew. For that reason, if you need to often switch between version and return back to a specific version, install Terraform manually as shown below in "[[#Manual_Installation|Manual Installation]]". | |||
brew install terraform | |||
===Install a specific version=== | |||
Follow the procedure described here, adjusted for terraform: {{Internal|Brew_Operations#Install_a_Specific_Version|Install a Specific Version with brew}} | |||
=Linux= | |||
wget https://releases.hashicorp.com/terraform/0.12.14/terraform_0.12.14_linux_amd64.zip | |||
unzip terraform_0.12.14_linux_amd64.zip | |||
This will create a simple "terraform" binary that can be placed anywhere on the PATH. |
Latest revision as of 22:23, 28 February 2020
External
- https://learn.hashicorp.com/terraform/getting-started/install.html
- https://www.terraform.io/downloads.html
Internal
Mac Installation
Manual Installation
In case you need to switch back and forth between Terraform versions on the same system, manual installation is preferable to a brew-driven installation.
Download the latest version from https://www.terraform.io/downloads.html.
Older versions can be downloaded from https://releases.hashicorp.com/terraform/.
cd /opt mkdir ./terraform wget wget https://releases.hashicorp.com/terraform/0.12.13/terraform_0.12.13_darwin_amd64.zip unzip terraform_0.12.13_darwin_amd64.zip mv terraform terraform-0.12.13 rm terraform_0.12.13_darwin_amd64.zip cd /usr/local/bin ln -s /opt/terraform/terraform-0.12.13 ./terraform
Brew
Note that is a bit complicated to switch between terraform version when Terraform is installed with brew. For that reason, if you need to often switch between version and return back to a specific version, install Terraform manually as shown below in "Manual Installation".
brew install terraform
Install a specific version
Follow the procedure described here, adjusted for terraform:
Linux
wget https://releases.hashicorp.com/terraform/0.12.14/terraform_0.12.14_linux_amd64.zip unzip terraform_0.12.14_linux_amd64.zip
This will create a simple "terraform" binary that can be placed anywhere on the PATH.