Skip to content

Commit 7f05937

Browse files
dataform_repository - add missing args (#9173) (#16733)
[upstream:a007c7ce0f9498648bb61de3e9151b0639ed181b] Signed-off-by: Modular Magician <[email protected]>
1 parent 6b31b8c commit 7f05937

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.changelog/9173.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
dataform: added `display_name`, `labels` and `npmrc_environment_variables_secret_version` fields to `google_dataform_repository` resource
3+
```

website/docs/r/dataform_repository.html.markdown

+29
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ resource "google_secret_manager_secret_version" "secret_version" {
6363
resource "google_dataform_repository" "dataform_respository" {
6464
provider = google-beta
6565
name = "dataform_repository"
66+
display_name = "dataform_repository"
67+
npmrc_environment_variables_secret_version = google_secret_manager_secret_version.secret_version.id
68+
69+
labels = {
70+
label_foo1 = "label-bar1"
71+
}
6672
6773
git_remote_settings {
6874
url = google_sourcerepo_repository.git_repository.url
@@ -157,6 +163,22 @@ The following arguments are supported:
157163
(Optional)
158164
The service account to run workflow invocations under.
159165

166+
* `npmrc_environment_variables_secret_version` -
167+
(Optional)
168+
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.
169+
170+
* `display_name` -
171+
(Optional)
172+
Optional. The repository's user-friendly name.
173+
174+
* `labels` -
175+
(Optional)
176+
Optional. Repository user labels.
177+
An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
178+
179+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
180+
Please refer to the field `effective_labels` for all of the labels present on the resource.
181+
160182
* `region` -
161183
(Optional)
162184
A reference to the region
@@ -219,6 +241,13 @@ In addition to the arguments listed above, the following computed attributes are
219241

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

244+
* `terraform_labels` -
245+
The combination of labels configured directly on the resource
246+
and default labels configured on the provider.
247+
248+
* `effective_labels` -
249+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
250+
222251

223252
## Timeouts
224253

0 commit comments

Comments
 (0)