Installing Terraform on Windows
Hint: Use Linux commands 😊
·Jul 22, 2021·
1 min read
Like the subtitle suggests, doing things on the Linux CLI seems to always be easier than dealing with Windows, but at least Git Bash is on Windows. Installing Terraform on Linux (assuming you have the HashiCorp Linux repo):
sudo apt-get update && sudo apt-get install terraform
An easy way to get it usable on Windows is to well, use Linux commands ¯_(ツ)_/¯
Download the latest Windows version (as of 7/21/21) - releases.hashicorp.com/terraform/1.0.3/terr..
Open Git Bash
Extract the zip and move the .exe to a location you like.
unzip terraform*.exe mv terraform.exe /c/path_to_exe/
Update your .bash_profile path
Validate you can use the terraform command