Interview Prep/Terraform/Refactoring, Migration and Drift

How do you handle an emergency console change?

IntermediateProductionRefactoring, Migration and Drift
Answer

Make the change, record it in the incident channel, then immediately mirror it in code and confirm via terraform plan that no diff remains. If the change should be reverted, apply Terraform to overwrite it. The point is to close the loop quickly so drift does not accumulate and the next apply does not surprise anyone.

All Terraform questions Roadmap: Terraform in production

More on Refactoring, Migration and Drift