Use this tool to generate equivalent Go types from Terraform provider schema.
The entry point for this tool is ..
It uses ./tmp a temporary data directory and ../schema as output directory.
It automatically installs the Terraform binary as well as the Databricks Terraform provider. It also fetches SHA256 checksums for the provider archive from GitHub releases.
Run with:
go run .How to regenerate Go structs from an updated terraform provider?
- Bump version in ./schema/version.go
- Delete
./tmpif it exists - Run
go run . - Run
gofmt -s -w ../schema