Interview Prep/Terraform/Repository Structure, Environments and Module Strategy

How do you promote a module change from dev to qa to prod?

AdvancedProductionRepository Structure, Environments and Module Strategy
Answer

Tag the module (v2.3.0), bump the version in dev's stack, apply, soak and run tests; then bump qa, then prod through approvals. Because each environment pins a version, you always know what is deployed where, and rollback is reverting the pin (state-compatible changes only). For breaking releases, ship moved blocks and document the migration.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy