Terraform
Terraform Backend
Appears inTerraform Associate
A configuration that defines where Terraform state is stored. Remote backends (S3, Azure Blob Storage, HCP Terraform) enable team collaboration and state locking to avoid conflicts.
On the exam
In Terraform Associate: without a remote backend, state is local and can't be shared with the team. With an S3 backend, state locking is enabled with use_lockfile = true (Terraform 1.11+; the DynamoDB method is deprecated). Question: how do you prevent two people from applying changes at the same time? State locking with a remote backend.
Related terms
- Terraform StateA file (terraform.tfstate) that Terraform uses to map the real-world configuration in code to actual resources in the cloud. It's Terraform's source of truth about which resources it manages and their current status.
- Terraform WorkspaceSeparate state instances within the same configuration. Lets you manage multiple environments (dev, staging, prod) with the same codebase. Each workspace has its own tfstate file.