hands-on lab

Installing Terraform on Windows and Linux

Up to 45m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Terraform is an infrastructure automation tool that allows companies to manage infrastructure by using code. The tool itself is written in Golang which makes it easily multi-platform compatible. Installing Terraform is not like installing usual applications. It involves downloading the binary and modifying the environment variables. Understanding how to install Terraform is crucial when designing an infrastructure as code strategy and is a foundational concept when building CI/CD pipelines to deliver infrastructure.

In this lab, you will install Terraform on a Windows and Linux server.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Understand how Terraform is installed
  • Install Terraform on Windows and Linux environments

Intended Audience

This lab is intended for:

  • Individuals studying to take the HashiCorp Certified: Terraform Associate exam
  • Anyone interested in learning how to use Terraform to manage Cloud Service Providers

Lab Prerequisites

You should be familiar with:


June 29th, 2023 - Updated the instructions and screenshots to reflect the latest UI

January 12th, 2020 - Updated to the latest Windows AMI

Environment before

Environment after

About the author

Learning paths

Luke is a Site Reliability Engineer at Microsoft. His background is infrastructure development using Terraform and in 2021 he was awarded the HashiCorp Ambassador award. He is an Azure DevOps Engineer Expert, Azure Administrator Associate, and HashiCorp Certified - Terraform Associate.

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Installing Terraform on Linux
Installing Terraform on Windows