Installing Terraform on Windows
Hint: Use Linux commands 😊
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) - https://releases.hashicorp.com/terraform/1.0.3/terraform_1.0.3_windows_amd64.zip
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
export PATH="$PATH:/c/path_to_exe"Validate you can use the terraform command
terraform --version
About the author
DevOps Engineer that wears multiple hats.
Comments
Join the discussionNo comments yet. Be the first to comment.





