Cross-State Terraform and OpenTofu Refactoring CLI
Terraform's moved blocks handle simple renames within a single state file, but cross-state moves, module extraction across workspaces, and backend migrations still require hours of manual terraform state mv commands with high risk of destroying resources. A 40-module migration that should take 10 minutes routinely becomes a 2-4 hour ordeal.
The killer feature is the dry-run simulation. Before any state mutation, show exactly which resources will be affected, which dependencies will break, and what the rollback path is. Terraform users are trauma-bonded to state corruption. The trust bar is extremely high. Ship the read-only analyzer first, the mutation tool second.
landscape (4 existing solutions)
Moved blocks solved the easy case (renames within one state). The hard cases remain: splitting monolithic states, extracting modules to separate workspaces, migrating backends (e.g., Terraform Cloud to S3), and coordinating changes across dependent states. No tool provides a dependency-aware dry-run simulation for these operations.