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.
More on Refactoring, Migration and Drift
What is your workflow for refactoring Terraform safely?IntermediateHow do you rename a resource inside a shared module without breaking consumers?AdvancedHow do you split one state into two without downtime?AdvancedHow do you merge two states?IntermediateHow do you import a large existing environment efficiently?IntermediateHow do you upgrade a major version of the AWS provider?Advanced