I have a large Terraform workspace, making extensive use of modules, in which provider aliases have been used, sometimes unnecessarily, and with inconsistent naming choices.
I would really like to clean this up, but I’m finding there’s a lack of options for updating provider aliases for refactoring:
terraform state mvhandles resource addresses - it’s a move along a different axis to what I need
- Terraform 1.1
movedblocks - the same applies
terraform state replace-providerhandles provider names, but seems deliberately written to avoid touching the aliases, lacking the syntax to specify them on the command line
Am I missing anything, or is this a feature gap which would require me to perform a custom transformation directly on the JSON state data?