Terraform
Configuration drift
Appears inTerraform Associate
The difference between the infrastructure described in Terraform code (and reflected in the state) and the actual state of resources at the provider, usually caused by manual changes made outside of Terraform.
On the exam
In Terraform Associate it's detected with terraform plan -refresh-only, which updates the state to reflect reality without modifying the code or applying changes. A normal terraform plan would show the drift as changes to revert on the next apply.
Related terms
- Terraform PlanA command that generates and displays an execution plan without applying any changes. It compares the desired configuration with the current state and shows which resources will be created, modified, or destroyed.
- 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.