Terraform is infrastructure as code tool. With Terraform scripts we can automate the configuration of our infrastructure.In this tutorial, we are going to learn how to install Terraform on Windows.

Download Terraform

Firstly, you need to download Terraform from here. You can see the windows 32 bit and 64 bit source files. Download depends on your system here I am downloading 64 bit Terraform. It will be downloaded as zip file.

Unzip the terraform package

Create a directory called "terraform" in C:/ and extract the downloaded zip file to that directory.

Configure Environment Variables for Terraform

Then you need to add your path where your terraform.exe is located to Environment Variables—>System variables—>Path–Edit–>New.

Verify Terraform Version

Open your command prompt and type "terraform -v" to verify that Terraform is installed successfully in your computer. It will give you the terraform version.