databricks-cli/bundle/internal/tf/codegen
Andrew Nester f7a45d0c7e
Upgrade to TF provider 1.65.1 (#2328)
## 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`
2025-02-10 14:06:02 +00:00
..
generator Upgrade TF provider to 1.61.0 (#2011) 2024-12-13 15:55:49 +00:00
schema Upgrade to TF provider 1.65.1 (#2328) 2025-02-10 14:06:02 +00:00
templates Upgrade TF provider to 1.61.0 (#2011) 2024-12-13 15:55:49 +00:00
.gitignore Regenerate bundle resource structs from latest terraform provider (#633) 2023-08-03 11:20:30 +00:00
README.md Upgrade to TF provider 1.65.1 (#2328) 2025-02-10 14:06:02 +00:00
go.mod Upgrade go to 1.23.4 (#2038) 2024-12-20 09:21:36 +00:00
go.sum Bump golang.org/x/crypto from 0.30.0 to 0.31.0 in /bundle/internal/tf/codegen (#2005) 2024-12-16 08:55:33 +01: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
  5. Go back to the root of the repo.
  6. Update /acceptance/terraform/main.tf file to use new version of TF provider
  7. Run go test ./acceptance -v -update -run TestAccept/terraform to update test output with a new version of TF provider