🚧 This is very much WIP, do not use in production. 🚧
Terrafactor is a refactor tool for Terraform configurations.
Before Go v1.16:
$ go get github.com/magodo/terrafactor
Since Go v1.16:
$ go install github.com/magodo/terrafactor
- 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 aRelativeTraversalExpr
,FunctionCallExpr
, etc)