SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for AWS Amazon Web Services, Redshift, AWS Lambda Functions, S3 Buckets, VPC, EC2, IAM

Install Terraform on Windows

In this short guide I want to show cloud developers how they can install Terraform on Windows by following the below listed steps. Terraform is most common way among cloud professionals to manage their cloud resources on multiple platforms including AWS, GCP and Azure. It is the most preferred IaC (Infrastructure as Code) solution.

To work with Terraform IaC solution on Windows computers, you should first download the Terraform executable file in compressed format from its developer's, HashiCorp's web site.
Go to Terraform for Windows and download binary file.

download Terraform for Windows

After you download the compressed setup file, save it in a local folder that you want to keep it and extract the executable file.
After unzipping the compressed file, you can delete it. Just keep the executable terraform.exe file

Terraform executable for Windows

After you download and extract the setup file for terraform.exe, in order to reference it from any where during your work you can edit Environment settings
This will save you time and reduce complexity while working.
Just start typing "Environment Variable" in Windows Search and select the application from the filtered list.

Edit System Variables on Windows

On System Properties window, switch to Advanced tab and click on "Environment Variables ..." button

Windows Environment Variables for Terraform

Scroll down until you see Path system variable which is in the window located at the bottom of the screen.

edit Path system variable for Terraform

Add the local path of the terraform executable file as a new line in Path variable.

add Terraform path to system environment variables

Click OK, OK and Apply on open screens and close System Properties dialog.

Now open a new Command Prompt application and type following command to verify terraform installation on Windows.

terraform -version

verify terraform installation on Windows

As you see installing Terraform is so easy on a Windows computer. So you can build your IaC solutions using Terraform to manage and codify your cloud resources on various public cloud providers like AWS, Azure or GCP.


Copyright © 2004 - 2024 Eralper YILMAZ. All rights reserved.