Terraform State

  • Terraform needs to store some data about what it's done so far
  • Uses the concept of a state file
  • Can be stored on your machine or in a remote (often shared) location
terraform {
    backend "s3" {
        bucket = "xsrt-iac"
        key = "terraform/terraform.tfstate"
        region = "us-east-2"
    }
}

17 / 18