How to Install Terraform on a Windows System.

GABRIEL OKOM
2 min readApr 11, 2024

--

To install Terraform on a Windows system, you can follow these steps:

1. Download Terraform:
— Visit the Terraform website at https://www.terraform.io/downloads.html.
— Download the appropriate ZIP archive for Windows. Terraform is distributed as a single executable file, so there’s no need for an installer.

2. Extract the ZIP Archive:
— Once the download is complete, navigate to the location where the ZIP archive was saved.
— Right-click on the ZIP file and select “Extract All…”.
— Choose a destination folder where you want to extract the Terraform executable. Make sure to remember this location as you’ll need it later.

3. Add Terraform to System Path:
— Open the Start menu and search for “environment variables” to access the System Properties window.
— Click on “Environment Variables…” at the bottom of the window.
— In the Environment Variables window, under System variables, find the “Path” variable and select it.
— Click “Edit…” to modify the Path variable.
— Click “New” and add the path to the directory where you extracted the Terraform executable. For example, if you extracted it to `C:\terraform`, add `C:\terraform` to the Path.
— Click “OK” to save the changes and close the Environment Variables window.

4. Verify Installation:
— Open a Command Prompt window by searching for “cmd” in the Start menu.
— Type in the `terraform version` and press Enter.
— If Terraform is installed correctly and added to the system path, you should see the version number of Terraform printed in the Command Prompt window.

That’s it! Terraform should now be installed and ready to use on your Windows system. You can start using Terraform to manage your infrastructure as code.

#devops #terraform #windows #systemengineer #devopsengineer

--

--

GABRIEL OKOM
GABRIEL OKOM

Written by GABRIEL OKOM

MSc Cyber Security and Computer Forensics | Certified DevOps Engineer

No responses yet