
How-ToDevOps
How to Safely Refactor Live Terraform Without Recreating Resources
via HackernoonMariusz Michalowski
Live Terraform refactors are risky because Terraform tracks resource addresses in state, not your intent. This guide shows how to safely move resources into modules with moved blocks, import existing infrastructure with import blocks, and add a small native test to confirm the refactor didn’t change the module contract or recreate production resources.
Continue reading on Hackernoon
Opens in a new tab
0 views



