Interview Prep/Terraform/Refactoring, Migration and Drift

How do you upgrade the Terraform CLI across many stacks?

IntermediateProductionRefactoring, Migration and Drift
Answer

Check release notes for breaking changes, run plan with the new version in CI across all stacks (read-only) to catch diffs, upgrade dev stacks first, then bump required_version and tooling versions. Once any stack applies with the new version, state may no longer be readable by older CLIs, so move fast within a team after the first apply.

All Terraform questions Roadmap: Terraform in production

More on Refactoring, Migration and Drift