- Download terraform for windows
- Note: Terraform is packaged as a zip archive, so after downloading Terraform, unzip the package.
- Copy files from the zip to “c:\terraform” for example. That’s our terraform PATH.
Windows 10 and Windows 8
- In Search, search for and then select: System (Control Panel)
- Click the System and Security link.
- Click the System link.
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, append at the end of the PATH environment variable the value of terraform path ex.”c:\terraform;” . Click OK. Close all remaining windows by clicking OK.
- Reopen Command prompt window, and run terraform.
Windows 7
- From the desktop, right click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, append at the end of the PATH environment variable the value of terraform path ex.”c:\terraform;” . Click OK. Close all remaining windows by clicking OK.
- Reopen Command prompt window, and run terraform.
Install Terraform – Linux
- Download terraform for linux.
$ wget https://releases.hashicorp.com/terraform/0.xx.x/terraform_0.xx.x_linux_amd64.zip
- Note: Terraform is packaged as a zip archive, so after downloading Terraform, unzip the package. Terraform runs as a single binary named terraform. Any other files in the package can be safely removed and Terraform will still function
2.Install unzip
sudo apt-get install unzip
3.Unzip and set path.
$ unzip terraform_0.11.1_linux_amd64.zip
$ sudo mv terraform /usr/local/bin/
Verify Install
When you’re done, you should be able to run the terraform command and get the usage information:
No comments:
Post a Comment