Generate Terraform moved blocks automatically for painless refactoring
APACHE-2.0 License
--terraform-bin
flag in outputAs reported by @p1gmale0n and @strowi in issue #70, tfautomv
would ignore the --terraform-bin
flag when generating <something> state mv
commands. Instead of using the user-provided executable in these commands, it would always use terraform
. This is now fixed.
Published by busser 8 months ago
As reported by @untcha in issue #81, when tfautomv
wrote moved
blocks to a file it didn't finish with a new-line character. When running tfautomv
multiple times, generating blocks each time, the resulting code was invalid. This is now fixed.
Published by busser 9 months ago
Move resources across modules and use tfautomv
to generate the necessary state mv
commands:
tfautomv workdir-A workdir-B workdir-C | sh
More details here: https://github.com/busser/tfautomv#finding-moves-across-multiple-directories
init
and refresh
stepsSave some time by skipping the init
and refresh
phases when computing Terraform's plan:
tfautomv --skip-init --skip-refresh
# or, for short
tfautomv -sS
More details here: https://github.com/busser/tfautomv#skipping-the-init-and-refresh-steps
Inspect tfautomv
's analysis with any level of detail:
tfautomv -v
tfautomv -vv
tfautomv -vvv
This replaces the previous -show-analysis
flag.
More details here: https://github.com/busser/tfautomv#understanding-why-a-resource-was-not-moved
The internal logic engine has been entirely rewritten. It can now be imported by other tools and has much better tests.
The project's documentation, previously found at https://tfautomv.dev, is now in the repository's README. The website now redirects to the repository.
Published by busser 12 months ago
🤖 Add end-to-end test with Terraform Cloud backend
🐛 Fix data race in end-to-end tests
⬆️ Update various dependencies
Published by busser about 1 year ago
🔨 Get install.sh
script to work on x86_64 architectures (#56)
📚 Improve README significantly (#49)
🔨 Test Terraform v1.4 and v1.5 in CI (#48)
⬆️ Update various dependencies
Published by busser over 1 year ago
⬆️ Update dependencies
♻️ Transfer repository
📚 Add Thanks section to README
Published by busser over 1 year ago
Published by busser almost 2 years ago
This release includes the new prefix
effect for the -ignore
flag, a new
-terraform-bin
flag, and the ability to install tfautomv on Arch Linux.
prefix
effectWith the prefix
effect, users can use the -ignore
flag to make tfautomv
ignore the beginning of a value when comparing two attributes. See
Usage / Ignore certain differences for
more details.
-terraform-bin
flagUsers can now use any Terraform binary or wrapper by setting the
-terraform-bin
flag. Useful when working with Terragrunt, for example.
See Usage / Use a specific Terraform binary
for more information.
Users who work on Arch Linux can now install tfautomv from the Arch User
Repository (AUR). See Getting started / Installation
for instructions.
Published by busser almost 2 years ago
Published by busser almost 2 years ago
Published by busser about 2 years ago
This release includes the new tfautomv.dev website, new features, a few fixes, and improvements to our automated tests.
Our documentation has moved to a website: tfautomv.dev. The README was becoming a bit cramped and we wanted to make our documentation easy to navigate. All existing documentation has been moved to the website, with the following additions:
-ignore
flag allows users to specify rules that makes tfautomv less strict when comparing two resources with each other.-no-color
flag disables tfautomv's text formatting entirely.-output=commands
flag correctly escapes quotes in the commands. They can now be copy-pasted or piped into a shell as they are.tfautomv
binary, not Go packages.Published by busser about 2 years ago
Published by busser about 2 years ago
b4e7923 Create LICENSE
03ef151 Merge pull request #1 from padok-team/feat/ci
fae8c06 chore(deps): add renovate.json
0c98a39 chore: bump to v0.3.0
cac9650 ci: build and test
1c2c3ca feat: add -dry-run flag
ce61092 feat: allow printing state mv commands
33cee11 fix(deps): update module github.com/google/go-cmp to v0.5.8
2fa00ca refactor: add tests
e057455 refactor: remove unnecessary requirements
Published by busser over 2 years ago
09d6088 feat: add -show-analysis flag
02d66a7 refactor: ignore release artifacts
2b41fa5 refactor: ignore test artifacts
ee7e031 release: v0.2.0
Published by busser over 2 years ago
9406b9d feat: build an MVP
e1d7354 fix: comment out failing test