🚧 This is very much WIP, do not use in production. 🚧
Terrafactor
Terrafactor is a refactor tool for Terraform configurations.
Install
Before Go v1.16:
$ go get github.com/magodo/terrafactor
Since Go v1.16:
$ go install github.com/magodo/terrafactor
TODO
Input Variable: Rename name (cross modules)
Input Variable: Rename attribute for complex type (cross modules)
Output Variable: Rename name (cross modules)
Output Variable: Rename attribute for complex type (cross modules)
Local Variable: Rename name
Local Variable: Rename attribute for complex type
Data/Managed Resource: Rename attribute/block name in complex expression (e.g. covering Traversal component of a RelativeTraversalExpr, FunctionCallExpr, etc)