Terraform
We recommend using tfswitch
to manage your Terraform versions.
Install tfswitch
:
Install Terraform:
Add the location of the tfswitch
binary to your PATH
:
Verify that the correct version of Terraform is installed:
Persist the location of Terraform versions managed by tfswitch
:
Executable PATH
Once you open a new terminal window the path to the Terraform binary managed by tfswitch
will not be set.
To persist the path you must add the same command we ran manually in step 3 to your ~/.bash_profile
or ~/.zshrc
file. Below is an example of how to do this.
Alternatively you can refer to HashiCorp's guide for installing Terraform