Skip to content

Latest commit

 

History

History
executable file
·
33 lines (22 loc) · 849 Bytes

003-Install-Terraform-on-WSL.md

File metadata and controls

executable file
·
33 lines (22 loc) · 849 Bytes

Install Terraform on WSL

To install Terraform locally (assuming you're running WSL on a Windows computer), follow the steps below.

Run an update first.

sudo apt-get update 
sudo apt-get upgrade  

Navigate to the Terraform download page and scroll down to Binary download for Linux. Choose the version you need and click Download

In WSL, go to the directory where the zip file was downloaded. Unzip the file and move to /usr/local/bin. Remove the zip file afterwards.

sudo mv terraform /usr/local/bin; 
rm terraform*.zip; 

Verify installation.

$ terraform -version
Terraform v1.6.3
on linux_386 

Reference: https://techcommunity.microsoft.com/t5/azure-developer-community-blog/configuring-terraform-on-windows-10-linux-sub-system/ba-p/393845