aiven
A tool to make ad-hoc Aiven related Terraform state transformations.
Supports both Terraform and Terragrunt.
Build & Run
Build
- Change directory to
cmd/aiven
- Run
go build
- Use created aiven binary for the next steps
Run
Simply run the binary and use the provided prompt wizard to analyze existing configurations
and make necessary migration transformations.
The tool assumes that you store your tfState.json file remotely on AWS.
That's why it checks beforehand validity of your AWS Credentials
and pulls then the state using correspondent terraform/terragrunt command.
If you need to analyze your local tfState.json files run ./aiven <path/to/tfState1.json> <path/to/tfState2.json>.
This way you'll be prompted to import resources from those files into your current state.