# minamijoyo/tfmigrate

A Terraform / OpenTofu state migration tool for GitOps

Repository: https://github.com/minamijoyo/tfmigrate
Canonical: https://ross.abutalabs.com/products/tfmigrate
Language: Go
License: MIT
License Family: permissive
Topics: terraform, tfstate, go, gitops, opentofu
Last push: 2026-05-04T13:10:37+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 80, release rhythm 58, longevity 100
- inputs: {"age_days": 2259, "days_push": 121, "days_rel": 121, "gap_med": 118.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1278, forks 63 (observed 2026-08-28T04:04:13.338852+00:00)

## What it is
tfmigrate is a CLI tool for safely migrating Terraform and OpenTofu state files in a GitOps-friendly, declarative way. It lets you write state mv/rm/import operations as HCL migration files, dry-run them, and track applied migration history.

## Use cases
- rename or move terraform resources in state without manual terraform state mv commands
- split or merge terraform state files when refactoring a monorepo
- import existing infrastructure into terraform state declaratively
- dry-run state migrations and verify terraform plan shows no changes
- track and apply unapplied state migrations in sequence in CI
- replace state providers across a terraform codebase

## When to choose
- you practice GitOps and want state changes committed as reviewable code
- you need to refactor terraform state across multiple tfstates in a monorepo
- you want safe, simulated state migrations before touching remote state

## When to avoid
- you only need simple one-off state edits and are comfortable with terraform state commands directly
- you use IaC tools other than Terraform or OpenTofu

## Facets
- artifact type: cli-tool
- maturity: active
- function: infrastructure-as-code, cli, developer-tools, configuration-management
- domain: infrastructure-as-code, developer-tools
- platform: windows, cli, go
- tags: terraform, opentofu, tfstate, gitops, state-migration, hcl, devops, automation, linux, macos

## Member repositories
- minamijoyo/tfmigrate (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.338852+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:02:46.294648+00:00, confidence not recorded.
  - readme: https://github.com/minamijoyo/tfmigrate (fetched 2026-08-28T04:04:13.338852+00:00, sha a7b2a1771f2a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
