tfmigrate
« Back to VersTracker
Description:
Terraform/OpenTofu state migration tool for GitOps
Type: Formula  |  Latest Version: 0.4.3@0  |  Tracked Since: Dec 22, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 1,249  |  Forks: 66  |  Language: Go  |  Category: Devops
Tags: terraform opentofu gitops state-management devops
Install: brew install tfmigrate
About:
tfmigrate is a CLI tool for safely migrating Terraform and OpenTofu state files within a GitOps workflow. It allows you to define state migration operations (like moving or renaming resources) in declarative HCL or YAML configuration files. This enables version-controlled, reviewable, and automated state changes, reducing the risk of manual errors.
Key Features:
  • Declarative migration plans in HCL/YAML
  • GitOps integration with plan/apply workflow
  • Supports both Terraform and OpenTofu
  • Dry-run mode for safety
  • History tracking of applied migrations
Use Cases:
  • Refactoring Terraform code (e.g., moving resources between modules)
  • Automating state updates as part of a CI/CD pipeline
  • Managing team-based infrastructure changes with code review
Alternatives:
  • terraform state mv – Native but imperative; lacks GitOps and declarative plan management.
  • OpenTofu – A direct fork of Terraform; tfmigrate supports both tools for state operations.
Version History
Detected Version Rev Change Commit
Dec 22, 2025 2:59am 0.4.3 0 VERSION_BUMP cb5c4356
Oct 10, 2025 4:36pm 0 VERSION_BUMP a4df54b9
Sep 12, 2025 12:38am 0 VERSION_BUMP 58c5c481
Nov 11, 2024 10:29am 0 VERSION_BUMP 6da80e97
Nov 11, 2024 10:12am 0 VERSION_BUMP 7d681cf5
Sep 12, 2024 11:05pm 0 VERSION_BUMP af23330c