{"id":20468477,"url":"https://github.com/mbode/terraform-state-mover","last_synced_at":"2025-04-13T10:24:57.593Z","repository":{"id":36976714,"uuid":"200493148","full_name":"mbode/terraform-state-mover","owner":"mbode","description":"Refactoring Terraform code has never been easier.","archived":false,"fork":false,"pushed_at":"2023-07-05T04:48:03.000Z","size":740,"stargazers_count":147,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:47:53.534Z","etag":null,"topics":["terraform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-04T12:59:04.000Z","updated_at":"2025-02-11T15:23:17.000Z","dependencies_parsed_at":"2024-06-19T00:01:59.631Z","dependency_job_id":"f80e5f9a-f17f-4fe0-87d7-b3e718085a55","html_url":"https://github.com/mbode/terraform-state-mover","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbode%2Fterraform-state-mover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbode%2Fterraform-state-mover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbode%2Fterraform-state-mover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbode%2Fterraform-state-mover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbode","download_url":"https://codeload.github.com/mbode/terraform-state-mover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248696862,"owners_count":21147204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["terraform"],"created_at":"2024-11-15T14:05:37.616Z","updated_at":"2025-04-13T10:24:57.572Z","avatar_url":"https://github.com/mbode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/mbode/terraform-state-mover)](https://goreportcard.com/report/github.com/mbode/terraform-state-mover)\n[![Actions Status](https://github.com/mbode/terraform-state-mover/workflows/Check/badge.svg)](https://github.com/mbode/terraform-state-mover/actions)\n[![codecov](https://codecov.io/gh/mbode/terraform-state-mover/branch/master/graph/badge.svg)](https://codecov.io/gh/mbode/terraform-state-mover)\n[![License](https://img.shields.io/github/license/mbode/terraform-state-mover)](https://github.com/mbode/terraform-state-mover/blob/master/LICENSE)\n[![Release](https://img.shields.io/github/v/release/mbode/terraform-state-mover)](https://github.com/mbode/terraform-state-mover/releases/latest)\n\n# Terraform State Mover\n\nHelps refactoring terraform code by offering an interactive prompt for the [`terraform state mv`](https://www.terraform.io/docs/commands/state/mv.html) command.\n\n## Installation\n\nUsing [homebrew](https://brew.sh/):\n```bash\nbrew install mbode/tap/terraform-state-mover\n```\n\nAlternatively, get a pre-built binary from the [latest release](https://github.com/mbode/terraform-state-mover/releases/latest) or build it yourself using\n\n```bash\ngo get github.com/mbode/terraform-state-mover\n```\n\n## Usage\n\n```bash\nterraform-state-mover # inside a Terraform root directory\n```\n\nExtra arguments after a `--` are passed to the `terraform plan` call. This makes the following possible:\n```bash\nterraform-state-mover -- -var key=value  # set variables\nterraform-state-mover -- -var-file=variables.tfvars  # use variable files\nterraform-state-mover -- -refresh=false  # skip state refresh\nterraform-state-mover -- -parallelism=50  # speed up plan by using more concurrent operations\n```\n\n*Hint:*\nIf terraform-state-mover is used with the [Google Cloud Platform provider](https://www.terraform.io/docs/providers/google/index.html) and remote state, it is recommended to use `--delay=2s`, otherwise API rate limits error might occur.\n\n## Key mapping\n| Key | Action    |\n|-----|-----------|\n| ⏎   | Select    |\n| ↓   | Next      |\n| ↑   | Previous  |\n| →   | Page Down |\n| ←   | Page Up   |\n\n## Demo\n\n![](demo.gif)\n\n## Terraform version compatibility\n\n| \u003c 0.10.1 | 0.10.1…8 | 0.11.0…15 | 0.12.0…31 | 0.13.0…7 | 0.14.0…11 | 0.15.0…5 | 1.0.0…11 | 1.1.0…9 | 1.2.0…2 |\n|:--------:|:--------:|:---------:|:---------:|:--------:|:---------:|:--------:|:--------:|:-------:|:-------:|\n| ✗        | ✓        | ✓         | ✓         | ✓        | ✓         | ✓        |    ✓     |    ✓    |    ✓    |\n\n## Contributing\nPull requests are welcome. Please make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Similar tools\n - [tfautomv](https://github.com/busser/tfautomv) - Generate Terraform `moved` blocks automatically for painless refactoring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbode%2Fterraform-state-mover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbode%2Fterraform-state-mover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbode%2Fterraform-state-mover/lists"}