github minamijoyo/tfmigrate v0.0.1

latest releases: v0.3.23, v0.3.22, v0.3.21...
3 years ago

Changelog

e96d748 Remove debug branch filter
032b2b3 Setup CD with goreleaser
d6fee0d Ensure to wait the localstack port listen
a5752a9 Use /tmp for plugin cache so that terraform can write it on CI
3eb015f Test the latest terraform
8553588 Disable cgo for go test
071ddcc Run testacc on CI
55f9f1b Setup CI with GitHub Actions
00cabc5 Update Go to v1.15.0
1094754 Add missing error check for setupWorkDir
79492b8 Hide logging in main to cleanup output for version command
60d916b Simplify short help message
d834575 Fix go vet issue
c1a70f4 Add logging for debug
8da91d3 Implement a command line interface
160a3b4 Add tests for ParseMigrationFile
54c4f11 Add tests for NewMigrator
301633b Check if migrator has actions
25f74a8 Use qux instead piyo for dummy string
cb27ad6 Add tests for NewMultiStateActionFromString
fddd7e1 Add tests for NewStateActionFromString
47ebc3e Define a migration file with HCL
3d90b10 Add acceptance test for MultiStateMigrator
4450a1a Pass a dir name instead of testing to support multiple directories
f3e8c89 Rename OverrideBackendToRemote to OverrideBackendToLocal
152204d Implement a MultiStateMigrator to move a resource across states
52e1817 Extract a common helper function to share it with a multi state migrator
7569a64 Add StateImportAction
54f8f57 Allow localstack to use iam endpoint
38226fb Add StateRmAction
9ce30bc Separate tfstate directory to avoid test side effects
60f7853 Move StateMVAction to a single file
c446b59 Use tfexec helpers and test if plan has change in TestAccStateMigratorApply
30acfee Disable unnecessary state backup for each state action
2b1d0ac Test if the local state doesn't update remote one.
628a829 Add PlanHasChange() helper to check if the plan has change
9061fd0 Add acceptance tests for TerraformCLI.OverrideBackendToRemote()
a39f7bf Use OverrideBackendToRemote for switch a backend to local
2202a24 Allow to switch a backend to local for temporary state operations
e10eb28 Read a dir from TerraformCLI
b42f947 Allow to get dir from TerraformCLI interface
fb5a8f6 Implement a proof of concept
001fda2 Rename to test_helper.go to import it from other package
f126c68 Add acceptance test for state rm
82e5902 Allow multi states move
6d7fa6d Test plan results before/after import
3c77848 Check if .terraform dir exits after init
0856e08 Add acceptance test for state push
40021a8 Add acceptance test for state pull
1f18dd9 Mark test helper to track where it was called from
fbaaeeb Expose a setup helper for acceptance tests
3c7d551 Move skip calls into helper
aff51df Add acceptance test for import
dc279c3 Test state list after apply and destroy
dea9fac Fix a bug for state list with no resources
d3a7caf Add acceptance test for state list
2dd191f Add acceptance test for destroy
c049e56 Add acceptance test for apply
3ff56af Add acceptance test for plan
7525855 Merge test helpers to helper_test.go
83d7701 Setup acceptance tests
32fed2f Allow executor to append environment variables
1890eea Fix typo
b88f0a6 Allow to inject a wrapper command such as direnv
a4c8421 Fix parse error for terraform version when check point enable
1a6f321 Add terraform import command
883cf8a Add terraform state rm command
e5b3dc0 Use dummy state for testing to clarify not depending on contents
5e72ab3 Change mocked exitCode to 0 when conflict error test
4e1b2b6 Add terraform state mv command
9922135 Allow apply to pass Plan
3e503c3 Allow state push to pass any options
dd5cc02 Allow state pull to pass any options
f3e6414 Wrap State and Plan interfaces to make room for future extensions
08cae7f Split files with subcommands
e5b725a Add terraform plan command
ad8fb1c Expose a low-level method Run()
be12241 Add terraform state list command
e33196a Add terraform destroy command
7140b2e Add terraform apply command
deedd44 Remove unnecessary mocked values
3a02947 Add terraform init command
ad2dd8f Set terraform version from build-args
148e877 Setup docker-compose with localstack for testing
df095f9 Add tests for state push
303f81b Add terraform state push
872e99f Define State as a named type to clarify TerraformCLI interface
895abf7 Allow to log command execution for debug
26d842d Add terraform state pull
9889247 Use Executor.Run() instead of Command.Run() to handle error
5ffc461 Add tests for stderr to Executor
8f12a5b Add tests for set env and dir to Executor
cc69023 Add tests for executor
6aab0a4 Add tests for running terraform version command
2bffcc9 Add an abstraction layer for executing arbitrary commands
82e8d0f Implements a TerraformCLI interface
c8dcf3a Initialize the repository
785390e Initial commit

Don't miss a new tfmigrate release

NewReleases is sending notifications on new releases.