Skip to content

Commit

Permalink
feat(dataform): support workspace_compilation_overrides in google_dat…
Browse files Browse the repository at this point in the history
…aform_repository (#8074) (#14839)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jun 7, 2023
1 parent 9399d39 commit a92466e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/8074.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
dataform: added field `workspace_compilation_overrides` to resource `google_dataform_repository` (beta)
```
3 changes: 3 additions & 0 deletions google/resource_dataform_repository_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package google
25 changes: 25 additions & 0 deletions website/docs/r/dataform_repository.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ resource "google_dataform_repository" "dataform_respository" {
default_branch = "main"
authentication_token_secret_version = google_secret_manager_secret_version.secret_version.id
}
workspace_compilation_overrides {
default_database = "database"
schema_suffix = "_suffix"
table_prefix = "prefix_"
}
}
```

Expand All @@ -90,6 +96,11 @@ The following arguments are supported:
Optional. If set, configures this repository to be linked to a Git remote.
Structure is [documented below](#nested_git_remote_settings).

* `workspace_compilation_overrides` -
(Optional)
Optional. If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
Structure is [documented below](#nested_workspace_compilation_overrides).

* `region` -
(Optional)
A reference to the region
Expand All @@ -116,6 +127,20 @@ The following arguments are supported:
(Output)
Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus

<a name="nested_workspace_compilation_overrides"></a>The `workspace_compilation_overrides` block supports:

* `default_database` -
(Optional)
Optional. The default database (Google Cloud project ID).

* `schema_suffix` -
(Optional)
Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.

* `table_prefix` -
(Optional)
Optional. The prefix that should be prepended to all table names.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:
Expand Down

0 comments on commit a92466e

Please sign in to comment.