Terraform State Management — Vocabulary and Language
Learn vocabulary for Terraform state: remote state, drift, import, and state operations.
0 / 5 completed
1 / 5
What is Terraform 'state'?
Terraform state (terraform.tfstate) maps Terraform resources to real-world infrastructure. Terraform uses state to determine what changes need to be made to match the configuration.
2 / 5
What is a 'remote state backend'?
A remote state backend stores state in a shared, remote location with locking to prevent concurrent modifications. Essential for team workflows.
3 / 5
What is 'state drift' in Terraform?
State drift occurs when someone modifies infrastructure manually (e.g., via the AWS console) without going through Terraform, causing the state to no longer match reality.
4 / 5
What does 'terraform import' do?
terraform import adds an existing infrastructure resource to Terraform state, allowing it to be managed going forward without recreating it.
5 / 5
What is 'state locking' in Terraform?
State locking prevents two users or automation processes from running terraform apply simultaneously, which could corrupt the state file.