An emergency requires a manual apply to prod outside the pipeline. How do you handle it?
AdvancedScenarioPipelines Terraform Cloud and OpenTofu
Answer
Situation read → Pipeline is down or too slow for an incident.
What I'd do →
- Use a break-glass role that requires approval, MFA and is alerted on assumption.
- Apply the smallest possible change, with a saved plan reviewed by a second person.
- Immediately commit the same change to Git so code and state agree.
- Post-incident, review whether the pipeline path could have been used.
Why → Emergencies happen, but they must be audited and reconciled to avoid drift.
Interview tip → "Break-glass is allowed, silent break-glass isn't."
More on Pipelines Terraform Cloud and OpenTofu
Build a basic GitHub Actions pipeline: plan on pull request, apply on merge to main.BeginnerReviewers can't read raw plan logs. How do you present the plan in the PR?IntermediateTwo PRs merge close together and both apply to the same stack. What prevents trouble?IntermediateHow do you add a manual approval before prod applies?IntermediateCompare Atlantis, HCP Terraform and a hand-built GitHub Actions pipeline.IntermediateA saved plan was approved yesterday and apply fails because main changed. How do you avoid dead approvals?Intermediate