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 →
- Read the diff attribute by attribute; check the provider changelog.
- If the change is a new default, either accept it or pin the old behaviour explicitly in code.
- 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.
More on Testing Upgrades and Large-Scale Operations
What does each of `terraform validate`, `plan` and `terraform test` actually check?BeginnerWrite a native test for a module that creates an encrypted S3 bucket.IntermediateCompare Terratest with `terraform test`.IntermediateReal-cloud integration tests leave orphaned resources when they fail midway. How do you handle that?AdvancedHow do you upgrade from Terraform 1.5 to 1.9 safely?IntermediateMajor AWS provider upgrade from v4 to v5 (or v5 to v6) across many stacks. How do you plan it?Advanced