Terraform state acts as a map between your cloud resources and their configurations. This state can be stored locally or remotely depending on the size of your project or team. Local state allows individuals and small teams to manage the resources that make up the infrastructure by providing a consistent representation of each resource and its current configuration.
Terraform state also provides a performance benefit by deploying only the necessary updates to your resources. Storing metadata such as resource dependencies keeps your infrastructure consistent and avoids deployment ordering issues.
Local state is managed by a default Terraform state file, which acts as the single source of truth for your cloud infrastructure.
In this lab, you will explore the declarative nature of Terraform state and the state configuration file. This lab will focus on local state and leave the topic of remote state for another lab.
Upon completion of this lab, you will be able to:
Familiarity with the following will be beneficial but is not required:
April 27th, 2023 - Updated theia to enable autosave
November 22nd, 2022 - Updated instructions to use debian-10 replacing debian-9
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.