Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataform_repository - add missing args #16733

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/9173.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
dataform: added `display_name`, `labels` and `npmrc_environment_variables_secret_version` fields to `google_dataform_repository` resource
```
29 changes: 29 additions & 0 deletions website/docs/r/dataform_repository.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ resource "google_secret_manager_secret_version" "secret_version" {
resource "google_dataform_repository" "dataform_respository" {
provider = google-beta
name = "dataform_repository"
display_name = "dataform_repository"
npmrc_environment_variables_secret_version = google_secret_manager_secret_version.secret_version.id

labels = {
label_foo1 = "label-bar1"
}

git_remote_settings {
url = google_sourcerepo_repository.git_repository.url
Expand Down Expand Up @@ -157,6 +163,22 @@ The following arguments are supported:
(Optional)
The service account to run workflow invocations under.

* `npmrc_environment_variables_secret_version` -
(Optional)
Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

* `display_name` -
(Optional)
Optional. The repository's user-friendly name.

* `labels` -
(Optional)
Optional. Repository user labels.
An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field `effective_labels` for all of the labels present on the resource.

* `region` -
(Optional)
A reference to the region
Expand Down Expand Up @@ -219,6 +241,13 @@ In addition to the arguments listed above, the following computed attributes are

* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{region}}/repositories/{{name}}`

* `terraform_labels` -
The combination of labels configured directly on the resource
and default labels configured on the provider.

* `effective_labels` -
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.


## Timeouts

Expand Down