How to Install Terraform on Windows 11

In this tutorial, we will guide you through the steps to install Terraform on Windows 11 operating system.

Prerequisites

Step 1: Download Terraform

Go to https://www.terraform.io/ website and click on the "Download" button. This will take you to the download page.

Select the version of Terraform that is compatible with Windows and download the zip file.

Step 2: Extract the Terraform archive

Navigate to the location where you have downloaded the Terraform zip file and extract it to a folder of your choice.

Step 3: Add the Terraform executable to the system path

To use Terraform commands in PowerShell or Command Prompt, we need to add the Terraform executable to the system path.

  1. Open the start menu and search for "Environment Variables".
  2. Click on "Edit the system environment variables"
  3. Click on the "Environmental Variables" button.
  4. In the "System Variables" section, scroll down until you find the "Path" variable and then click on "Edit".

System Variables – Path

  1. Click on "New", then type in the path where you extracted the Terraform executable.

Add Terraform folder path to Path

  1. Click on "OK" to close all windows.

Step 4: Confirm the Terraform installation

Open the PowerShell or Command Prompt and run the following command:

terraform -v

This command will show you the installed version of Terraform and confirm that it is installed correctly.

Terraform Version

Congratulations! You have successfully installed Terraform on your Windows 11 computer.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!