All hands-on labs

Premium Hands-on labbeginnerAWS

Remote Terraform State

When working with Terraform, we have two options for storing resource state: locally and remotely. The local option is the default, but we can also store state remotely which is the preferred method when working with a team to avoid conflicts and other issues. Learn how to store you Terraform state files in Amazon S3 in this lab.

  • 8 guided tasks

Scenario

A team cannot share infrastructure state reliably when it stays in one local file. You will move your Terraform state into S3 so team members can access the same state file.

What you will learn

  • Create an S3 bucket with versioning for Terraform state.
  • Migrate local Terraform state to an S3 backend.
  • Check that Terraform uses remote state.
  • Migrate state back to a local backend before teardown.
Hands-on lab

Remote Terraform State

Included in Cybr Premium.