So the terraform installation instructions on their site are not straight forward. Here how I did it
Linux (VM) : CentOS 6
Download the binaries
https://www.terraform.io/downloads.html
windows
good luck.
Linux (VM) : CentOS 6
https://www.terraform.io/downloads.html
1 2 3 4 5 | yum install -y zip unzip # install zip,unzip if not already present unzip terraform_*.* # unzip terraform and cd into the zipped directory echo $PATH # list the runtime path mv terraform /usr/local/bin/ # move the terraform binary file to the runtime path terraform -v # check the version of the terraform |
windows
- Download from https://www.terraform.io/downloads.html
- unzip it.
- create a terraform directory directly under C:/
- then move the terraform.exe to the C:/terraform
- launch our good old command window and run 'set PATH=%PATH%;C:\terraform'
- Since we want it to be accessible via powershell to, go to environment variables and add the 'C:\terraform' to your PATH.
- Run terraform -v
No comments:
Post a Comment