When Terraform Gets Messy: Refactoring, Imports, and State Surgery
The plan output showed the Cloud SQL instance being destroyed and recreated.
The database hadn't changed. The configuration hadn't changed. Someone had moved the resource from a flat main.tf into a mo
blog.madhav.dev6 min read