A proof of concept Terraform Plugin SDK upgrade tool for Terraform Provider code.
To install into your $GOBIN
directory (e.g. $GOPATH/bin
):
$ go get github.com/bflad/tfpluginsdkupgrade
Additional information about usage and configuration options can be found by passing the help
argument:
$ tfpluginsdkupgrade help
To report issues, change into the directory of the Terraform Provider code and run:
$ tfpluginsdkupgrade ./...
To automatically fix some issues, change into the directory of the Terraform Provider code and run:
$ tfpluginsdkupgrade -fix ./...
This project is built on the go/analysis
framework and uses Go Modules for dependency management.
Helpful tooling for development:
astdump
: a tool for displaying the AST form of Go file
$ go get URL
$ go mod tidy
$ go mod vendor
$ go test ./...
$ go install .