Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bgpat/tfmigrating
Generate a migration file for tfmigrate from tfplan.
https://github.com/bgpat/tfmigrating
Last synced: 28 days ago
JSON representation
Generate a migration file for tfmigrate from tfplan.
- Host: GitHub
- URL: https://github.com/bgpat/tfmigrating
- Owner: bgpat
- Created: 2022-03-30T18:44:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T20:15:48.000Z (over 2 years ago)
- Last Synced: 2024-10-14T19:23:19.603Z (2 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tfmigrating
Generate a migration file for [tfmigrate](https://github.com/minamijoyo/tfmigrate) from tfplan.
## Features
- migration block types
- [x] `state`
- [ ] `multi_state`
- migration actions
- [x] `mv`
- [ ] `rm`
- [ ] `import`
- migration options
- [ ] set custom migration name
- [ ] set `dir`
- [ ] set `workspace`
- [ ] set `force`
- others
- [ ] write migration with default filename
- [ ] prettify migration output## Install
```bash
go install github.com/bgpat/tfmigrating@latest
```## Usage
```bash
terraform plan -out=tfplan
terraform show -json tfplan | tfmigrating > migration.hcl
```