databricks-cli/bundle/internal/tf/codegen
Pieter Noordhuis 21d27885dc
Upgrade TF provider to 1.58.0 (#1900)
## Changes

Notable changes:
* Adds support for `restart_window` for pipelines.
* Fix drift for pipelines where `catalog` contains uppercase characters.
* Better error message if single-node job clusters are incorrectly configured.

See:
* https://github.com/databricks/terraform-provider-databricks/releases/tag/v1.58.0
* https://github.com/databricks/terraform-provider-databricks/releases/tag/v1.57.0
* https://github.com/databricks/terraform-provider-databricks/releases/tag/v1.56.0
* https://github.com/databricks/terraform-provider-databricks/releases/tag/v1.55.0

## Tests

Integration tests pass.
2024-11-14 14:00:15 +01:00
..
generator Upgrade to TF provider 1.52 (#1781) 2024-09-19 11:21:32 +00:00
schema Upgrade TF provider to 1.58.0 (#1900) 2024-11-14 14:00:15 +01:00
templates Add `bundle debug terraform` command (#1294) 2024-04-02 12:56:27 +00:00
.gitignore Regenerate bundle resource structs from latest terraform provider (#633) 2023-08-03 11:20:30 +00:00
README.md Bump Terraform provider to v1.29.0 (#926) 2023-10-27 09:16:41 +00:00
go.mod Bump Terraform provider to v1.36.2 (#1215) 2024-02-16 07:05:45 +00:00
go.sum Bump Terraform provider to v1.36.2 (#1215) 2024-02-16 07:05:45 +00:00
main.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00

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?

  1. Bump version in ./schema/version.go
  2. Delete ./tmp if it exists
  3. Run go run .
  4. Run gofmt -s -w ../schema