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

A plan shows a diff on a resource nobody touched, after a provider upgrade. How do you decide whether to apply?

IntermediateScenarioTesting Upgrades and Large-Scale Operations
Answer

Situation read → A new provider version computes attributes differently, or a default changed.

What I'd do →

  1. Read the diff attribute by attribute; check the provider changelog.
  2. If the change is a new default, either accept it or pin the old behaviour explicitly in code.
  3. If it's a bug, pin the previous provider version and file an issue.

Why → No-op upgrades are the goal; unexpected diffs deserve explanation before apply.

Interview tip → Explicit config beats relying on defaults that can change.

All Terraform questions Roadmap: Terraform in production

More on Testing Upgrades and Large-Scale Operations