tfautomv
« Back to VersTracker
Description:
Generate Terraform moved blocks automatically for painless refactoring
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: terraform devops infrastructure-as-code refactoring cli
Install: brew install tfautomv
About:
tfautomv is a CLI tool that scans Terraform plan output to detect resource renames and refactorings that require explicit moved blocks. It automatically generates the required 'moved' blocks, enabling safe and painless state refactoring without manual intervention.
Key Features:
  • Automatic detection of resource renames and relocations
  • Generates 'moved' blocks compatible with Terraform 1.1+
  • CLI workflow that integrates with terraform plan/apply
  • Zero-configuration operation for common refactoring patterns
Use Cases:
  • Refactoring Terraform resources by changing names or paths
  • Migrating modules without losing state
  • Automating state cleanup during infrastructure code reorganization
Alternatives:
  • terraform state mv – Manual command; requires explicit source/destination and is error-prone at scale
  • tfupdate – Focuses on updating provider/module versions, not state refactoring
Version History
Detected Version Rev Change Commit
Sep 12, 2025 12:51am 0 VERSION_BUMP 1497abe8
Sep 12, 2024 10:34pm 0 VERSION_BUMP 3f77d32f