Exploring Terraform State

Ready for the real environment experience?

DifficultyBeginner
Time Limit40m
Students2158
Ratings
4.5/5
starstarstarstarstar-half

Description

Terraform uses a system called Terraform State to keep track of resources managed and deployed through Terraform. This is a critical concept to understand as a Terraform infrastructure developer because Terraform state will always need to be kept in mind when architecting solutions. The state file acts as a database for mapping resources in AWS to the Terraform configuration file. It allows Terraform to have a declarative approach when it comes to infrastructure and provides performance boosts with large scale infrastructure automation. 

In this lab, you will learn how Terraform keeps track of the resources that it manages through Terraform state.

Learning Objectives

Upon completion of this lab you will be able to:

  • Understand how Terraform state works
  • Learn the security risks of the state file

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:

  • Cloud Services
  • DevOps

The following course can be used to fulfill the prerequisites:

Updates

Ocotber 27th, 2022 - Updated instructions for clarity

March 28th, 2022 - Updated instructions

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students14424
Labs46
Courses1
Learning paths5

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.