Interview Prep/Terraform/Testing Upgrades and Large-Scale Operations

A stack is still on Terraform 0.12 syntax and old providers. What upgrade path do you follow?

AdvancedScenarioTesting Upgrades and Large-Scale Operations
Answer

Situation read → Skipping versions isn't supported.

What I'd do →

  1. Step through 0.13, 0.14, 0.15 and 1.0 one at a time, using the matching upgrade guide.
  2. At 0.13 run terraform 0.13upgrade and add required_providers sources.
  3. Run plan after each step: expect no diffs.
  4. Then proceed to current 1.x.

Why → State format upgrades are one-way and each step has a guided migration.

Interview tip → Do it on a copy of state first.

All Terraform questions Roadmap: Terraform in production

More on Testing Upgrades and Large-Scale Operations