tfmigrate

Migrate Terraform state files safely between backends and versions.

brewmacoslinux
Try with needOr install directly
Source

About

Terraform/OpenTofu state migration tool for GitOps

Commands

tfmigrate

Examples

move terraform state to a different backend$ tfmigrate state mv -config tfmigrate.hcl
plan state migration before applying changes$ tfmigrate state plan -config tfmigrate.hcl
apply state migration with automatic rollback on failure$ tfmigrate state apply -config tfmigrate.hcl
migrate terraform state in a git-based workflow$ tfmigrate state apply -auto-approve
validate state migration configuration before executing$ tfmigrate state validate -config tfmigrate.hcl