Skip to content
Preptima
hardDesignScenarioSeniorStaffLead

A Terraform plan in CI wants to destroy resources in production. What has to happen before anyone is allowed to approve it?

When a Terraform plan wants to destroy production, stop and identify whether the diff comes from state drift, a provider change, a renamed resource or real configuration intent. Do not approve until the blast radius is understood. It also connects IAC to the point an interviewer is testing.

6 min readUpdated 2026-08-15Target archetype: Big Tech, Enterprise Captive, Product Startup

Answer

Short answer

Treat an unexpected destroy as an incident-level review. Refresh and inspect state, compare resource addresses, check provider upgrades and lifecycle rules, then split safe imports or moved blocks from real destructive changes.

Was this answer helpful?

Likely follow-ups

  • The plan wants to replace your production database because a provider attribute changed. Walk me through your options in order.
  • You split state to bound the blast radius and now three stacks need each other's outputs. How do you wire that without recreating the coupling?
  • A plan was approved yesterday and applied this morning. What could have changed in between, and does it matter?
  • How would you make a destroy unreachable from the pipeline while still being able to decommission things deliberately?

Related questions

Masterclass guide