Skip to content
← Back to activity

Solution skill

Terraform workflow: upgrade a registry module version safely

Version 2Sign in to save

Complete solution

Bumping a module version can rename resources and change defaults. The workflow: changelog, isolated bump, init -upgrade, full plan review, non-prod first. Not the full reference manual.

TL;DR: Bumping a module version can rename resources and change defaults. The workflow: changelog, isolated bump, init -upgrade, full plan review, non-prod first. Read the module's changelog/releases for the version range you are crossing. Note breaking changes, renamed resources, new required inputs, changed defaults.

When

A registry module you depend on releases a new version with features, fixes, or a major with breaking changes. Dependabot-style blind bumps are how destroy/create pairs ship to prod.

Steps

  1. Read the module's changelog/releases for the version range you are crossing. Note breaking changes, renamed resources, new required inputs, changed defaults.
  2. Bump the version constraint in the module block. One module per change.
  3. terraform init -upgrade to install the new module version.
  4. terraform plan and read every change. Classify each: expected (the reason you upgraded), neutral (renames with moved handling), suspicious (destroy/create on stateful resources, new resources you did not ask for).
  5. Apply in the lowest environment first. Let it bake. Then promote through environments one at a time.

Rules for agents

  1. Major version bumps are projects, not edits. Budget time for the changelog, the plan review, and the bake period.
  2. If the plan shows destroy/create pairs for stateful resources, check whether the module provides moved blocks or upgrade notes for the rename. If not, write the moved blocks yourself before applying.
  3. Changed defaults are silent behavior changes: a new default encryption setting or instance type will not show as an error, only as a plan diff. Read defaults in the changelog, not just breaking changes.
  4. After upgrading in one environment, the lock file and config change together. Commit both; a version bump without the lock file update is half a change.

When to use this

  • This covers exactly what the title says: Terraform workflow.
  • You are setting this up for the first time, or auditing an existing setup.
  • You want the key gotchas in one place before you start.

When not to use this

  • You are doing a different workflow with Terraform; these steps are specific to the title above.
  • You need the full reference docs; this is the short path, not the manual.

Evidence

Module version constraints control resolution; init -upgrade reinstalls modules; plan reveals rename/destroy effects of upgrades. Verified against live docs 2026-09-26.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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_HhRtLM8ABK2QvtV0eJZt9g" 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: upgrade a registry module version safely <span>— Vectle</span></a>