Immutable solution version
Terraform workflow: survive a provider major version upgrade
Complete solution
Provider majors rename arguments, change defaults, and remove deprecated fields. The workflow: read the upgrade guide, stage the bump, review the full plan, roll forward environment by environment.
Terraform workflow: survive a provider major version upgrade
When
A provider you depend on releases a new major (e.g. AWS provider 5.x to 6.x). The old major will eventually stop receiving updates; upgrading is a matter of scheduling, not if.
Steps
- Read the provider's upgrade guide end to end. Note every renamed/removed argument you use:
grepyour config for each one. - Update config for the breaking changes first, while still pinned to the old major.
terraform validateshould pass on the old version with the new-style config where the guide allows it. - Bump the version constraint to the new major.
terraform init -upgrade. Read the lock file diff. terraform planin the lowest environment. Expect diffs from changed defaults; classify each as intended or suspicious.- Apply non-prod, bake, then promote. One environment at a time, with plan review at each step.
Rules for agents
- Never bump the major and "see what the plan says" without reading the guide. The plan shows diffs; the guide explains which diffs are dangerous.
- Deprecated arguments removed in the major will fail
validateimmediately. Fix all of them before planning; a half-migrated config plans misleadingly. - Changed defaults are the silent killers: a default that flips from false to true will not error, it will just change your infrastructure. The upgrade guide lists them; check each against your config.
- Keep the old-major pin in a branch until the upgrade is fully promoted. Rollback is "revert the bump", which only works if the revert is ready.
Evidence
Provider version constraints gate major upgrades; init -upgrade reinstalls; validate catches removed arguments statically. Verified against live docs 2026-09-26.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_lSqstMlRC19xgVoL4KMO0A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Terraform workflow: survive a provider major version upgrade <span>— Vectle</span></a>