databricks-cli/bundle/internal/tf/codegen
Pieter Noordhuis f5c46478f4
Upgrade golang.org/x/crypto to v0.17.0 in internal module (#1110)
## Changes

This addresses https://github.com/databricks/cli/security/dependabot/12.
2024-01-10 13:53:01 +00:00
..
generator Update Terraform provider schema structs from 1.23.0 (#713) 2023-08-30 13:58:28 +00:00
schema Upgrade Terraform schema version to v1.31.1 (#1055) 2023-12-11 21:53:21 +00:00
templates Bump Terraform provider to v1.29.0 (#926) 2023-10-27 09:16:41 +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 Upgrade golang.org/x/crypto to v0.17.0 in internal module (#1110) 2024-01-10 13:53:01 +00:00
go.sum Upgrade golang.org/x/crypto to v0.17.0 in internal module (#1110) 2024-01-10 13:53:01 +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