How do you handle a module upgrade that introduces breaking changes?
AdvancedConceptModules
Answer
Read the release notes, bump the version on a branch and run plan in each environment, starting with dev. Look for replacements of stateful resources. If addresses changed use moved blocks (module authors should ship them) or terraform state mv. Apply to non-prod first, then promote the same version to prod.
More on Modules
What is a Terraform module and why use one?BeginnerHow do you call a module?BeginnerHow do inputs and outputs work with modules?BeginnerWhich module source types exist and where does `version` apply?IntermediateHow should you version and pin modules?IntermediateCan you use `count` and `for_each` on modules?Intermediate