tfpluginsdkupgrade
A proof of concept Terraform Plugin SDK upgrade tool for Terraform Provider code.
Install
Local Install
To install into your $GOBIN
directory (e.g. $GOPATH/bin
):
$ go get github.com/bflad/tfpluginsdkupgrade
Usage
Additional information about usage and configuration options can be found by passing the help
argument:
$ tfpluginsdkupgrade help
Local Usage
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 ./...
Development and Testing
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
Updating Dependencies
$ go get URL
$ go mod tidy
$ go mod vendor
Unit Testing
$ go test ./...
Local Install Testing
$ go install .