Highlight: Terraform Associate Exam Prep | Using Terraform Remote State
Using Terraform Remote State
Description
Terraform state is a critical component of using Terraform. However, there are many risks involved when storing the state file locally on a computer. The state file can contain sensitive information about the infrastructure, such as keys and passwords. Saving them to an engineer's laptop is not a great long-term solution. Also, as teams start utilizing Terraform and managing resources, they need a way to centrally store the state file so that everyone has access to run Terraform commands against the same infrastructure.
Additionally, this centralized storage solution needs to have a system to prevent the same state file from being used simultaneously. This is why Terraform can be configured to use a remote state feature, where the state file is stored in a remote location, and a feature called state file locking is introduced. Remote state can be used with native AWS services like S3 and DynamoDB.
In this lab, you will create an S3 Bucket and DynamoDB Table and configure remote state for a Terraform Configuration.
Lab Objectives
Upon completion of this Lab you will be able to:
Understand how Terraform remote state works
Learn the benefits of remote state
Lab Prerequisites
You should be familiar with:
Basic concepts of Cloud Service Providers
Fundamental understanding of DevOps
Basic understanding of Terraform state
Terraform Associate 003 Certification Exam Preparation
[https://platform.qa.com/learning-paths/terraform-associate-certification-exam-preparation-1-2814/?program=53dd1bdb-710b-4f91-a87e-42e55209738e](https://platform.qa.com/learning-paths/terraform-associate-certification-exam-preparation-1-2814/?program=53dd1bdb-710b-4f91-a87e-42e55209738e) -- Watch live at https://www.twitch.tv/msec