hands-on lab

Deploying AWS Infrastructure with Terraform

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 teams to treat their infrastructure as code. Infrastructure as code provides many benefits such as improved recovery, predictability, and speed. Infrastructure as code is quickly becoming a standard for managing cloud resources and is widely practiced among top-performing companies.

Terraform is platform-agnostic, meaning it can be used to manage any major cloud service provider as well as on-premise environments using vSphere and Cisco. Teams can use the same adopted skillset and workflows to manage other environments instead of reinventing the wheel for managing each environment. Terraform is simple to learn and can be easily adopted as a way to manage your cloud infrastructure.

In this lab, you will create a Terraform configuration to deploy a VPC in AWS.

Learning objectives

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

  • Work with the HashiCorp AWS Terraform Provider
  • Use with the HashiCorp Configuration Language syntax and Terraform configuration files
  • Run Terraform init, plan, and apply commands to manage infrastructure
  • Deploy an Amazon Virtual Private Cloud in AWS

Intended audience

  • Individuals studying for the HashiCorp Certified: Terraform Associate exam
  • Cloud Engineers
  • DevOps Engineers


Familiarity with the following will be beneficial but is not required:

  • Amazon Virtual Private Cloud

The following content can be used to fulfill the prerequisites:


  • July 28, 2023 - Updated lab steps, Terraform version, and lab format to utilize code tour format.

Environment before

Environment after

About the author

Jun Fritz, opens in a new tab
Cloud Labs Developer
Learning paths

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics

Lab steps

Deploying an Amazon Virtual Private Cloud With Terraform