Releases: minamijoyo/tfmigrate
v0.2.3
v0.2.2
v0.2.1
v0.2.0
Changelog
6be0d73 Bump version to v0.2.0
fe199aa No need to encourage contributions in godoc
3bcdb43 Fix typo
686f2f3 Use hashicorp/aws-sdk-go-base to authenticate s3 storage
85c7028 Apply state import on tests not to leave orphan resources on cleanup
12809e9 Destroy resources after each test not to have any state
fba26e3 Set TF_PLUGIN_CACHE_DIR to /tmp/plugin-cache on Docker
93fd0a0 Use -failfast for acceptance tests
fbb5f86 Fix typo in usage
62ad343 Bump version to v0.2.0-dev
ad05bfc Fix a bug of initialization s3 client
b1b4b26 Add debug prints
ecd2dc8 Fix a bug of forgetting to return
79b1511 Ignore an error if a default config file doesn't exist
35f2b60 Skip a hidden file on loading migration file
174bcd2 Move migration_dir to outside of history config
c3e00dc Add tests for HistoryRunner
8458970 Add test helpers for setting up migration file and dir
ba0fea8 Add tests for FileRunner
131adc1 Replace a local storage to a mock one in controller tests
be6f8ee Add a mock migrator for testing
52a2165 Add a mock storage for testing
bb4bf8a Rename SettingFile to ConfigurationFile
689dd43 Add CHANGELOG
48f3a26 Allow Controller.AddRecord() to pass a timestamp for testing
87a4b6f Add tests for Controller.AlreadApplied()
1a85bb6 Rename Controller.Length() to Controller.HistoryLength() and add tests
398f7a5 Implement a history-aware runner
2e521f4 Add UnappliedMigrations to list migration files to be applied
feab3e4 Fix typo
98fae6d Add tests for loadMigrationFileNames()
44cff1a Add tests for Controller.Save()
09785ca Initialize a new history if a given history is not found
dec9e62 Add tests for parseHistoryFile
01a0430 Use go-cmp instead of reflect.DeepEqual to compare time.Time
995caec Add tests for history.FileV1
568eab0 Set a json annotation tag to records to lower the key
9cf9e50 Add basic map operations to History
80cb24b Change type of AppliedLogs to map instead of slice
9efd390 Implement a History model
f7731f1 Move HistoryConfig to history package to avoid circular references
22e4a1a Move MigratorConfig from config to tfmigrate package
6fe1ab5 Add tests for parsing a setting file
07125dc Parse a setting file and build a TfmigrateConfig
5777baa Add constructors for s3 and local storage
bc72a07 Return an empty array instead of an error if the key does not exist
cd438a2 Add support for s3 storage
3f8c895 Implement a storage interface for migration history file
v0.1.1
v0.1.0
Changelog
7b86880 Bump version to v0.1.0
696ce60 Add test and example for HCL JSON syntax
7bc4ae0 Set TF_PLUGIN_CACHE_DIR to a path relative to the repo root
5553cb3 Prevent uploading pre-release to Homebrew
1e5a42c Fix typo
4403671 Update short description
acb89eb Fix typo
6e8799f Add README
14aa5e7 Change description for homebrew tap
v0.0.1
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