Interview Prep/Terraform/State and Backends in Production

A consumer stack breaks after the producer renamed an output. How do you prevent this?

IntermediateProductionState and Backends in Production
Answer

Treat outputs as an API: version them, never rename without deprecating (keep both for a release), and test consumers in the pipeline. Prefer SSM-parameter contracts with a documented path, or publish a single outputs object for stability. Add precondition checks in the consumer so a missing value fails with a clear message.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production