Interview Prep/Real-World Interview/Terraform and Ansible

What is drift, and how do you detect it?

IntermediateConceptTerraform and Ansible
Answer

Drift is when real infrastructure has been changed outside Terraform. Detect it with a scheduled terraform plan -detailed-exitcode, where exit code 2 means there are changes.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible