Back to list

Resource refactoring is destructive and risky

8/10 High

Renaming or reorganizing resources in Terraform code causes them to be destroyed and recreated rather than updated, risking catastrophic downtime and data loss for stateful resources like databases. There is no native refactoring capability.

Category
dx
Workaround
hack
Stage
build
Freshness
persistent
Scope
single_lib
Upstream
open
Recurring
Yes
Buyer Type
team
Maintainer
active

Sources

Collection History

Query: “What are the most common pain points with Terraform for developers in 2025?3/29/2026

If you rename a resource in your `.tf` file (e.g., from `aws_instance.web` to `aws_instance.web_server`), Terraform sees one resource to be destroyed and one new resource to be created... This can cause catastrophic downtime and data loss for stateful resources like databases or storage buckets.

Created: 3/29/2026Updated: 3/29/2026