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.
More on Refactoring, Migration and Drift
What is your workflow for refactoring Terraform safely?IntermediateHow do you rename a resource inside a shared module without breaking consumers?AdvancedHow do you split one state into two without downtime?AdvancedHow do you merge two states?IntermediateHow do you import a large existing environment efficiently?IntermediateHow do you upgrade a major version of the AWS provider?Advanced