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.
More on State and Backends in Production
Why should Terraform state never be committed to Git?BeginnerHow do you bootstrap the remote backend, given the bucket must exist before Terraform can use it?IntermediateWhat does a hardened S3 state bucket look like?IntermediateWhat is the minimum IAM permission set for the S3 backend?IntermediateHow do you move from DynamoDB locking to S3 native locking in a live fleet?IntermediateState was deleted or corrupted. How do you recover?Advanced