mirror of https://github.com/databricks/cli.git
## Changes Upgrade to TF provider 1.65.1 Notable changes: - Now it's possible to use `run_as` field in `pipelines` definition - Added support for `performance_target` for `jobs` |
||
---|---|---|
.. | ||
generator | ||
schema | ||
templates | ||
.gitignore | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
Use this tool to generate equivalent Go types from Terraform provider schema.
Usage
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.
Run with:
go run .
How to regenerate Go structs from an updated terraform provider?
- Bump version in ./schema/version.go
- Delete
./tmp
if it exists - Run
go run .
- Run
gofmt -s -w ../schema
- Go back to the root of the repo.
- Update
/acceptance/terraform/main.tf
file to use new version of TF provider - Run
go test ./acceptance -v -update -run TestAccept/terraform
to update test output with a new version of TF provider