Skip to content

Commit 8bc836f

Browse files
Added missing "force" (delete) argument to google_dataform_repository resource (#13309) (#21864)
[upstream:345c14df278422388e17ac8dd61d267190cb3e5d] Signed-off-by: Modular Magician <[email protected]>
1 parent 967d4d5 commit 8bc836f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changelog/13309.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
dataform: added `deletion_policy` field to `google_dataform_repository` resource. Default value is `DELETE`. Setting `deletion_policy` to `FORCE` will delete any child resources of this repository as well.
3+
```

website/docs/r/dataform_repository.html.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ resource "google_dataform_repository" "dataform_repository" {
8383
display_name = "dataform_repository"
8484
npmrc_environment_variables_secret_version = google_secret_manager_secret_version.secret_version.id
8585
kms_key_name = google_kms_crypto_key.example_key.id
86+
deletion_policy = "FORCE"
8687
8788
labels = {
8889
label_foo1 = "label-bar1"
@@ -161,6 +162,8 @@ The following arguments are supported:
161162
* `project` - (Optional) The ID of the project in which the resource belongs.
162163
If it is not provided, the provider project is used.
163164

165+
* `deletion_policy` - (Optional) Policy to control how the repository and its child resources are deleted. When set to `FORCE`, any child resources of this repository will also be deleted. Possible values: `DELETE`, `FORCE`. Defaults to `DELETE`.
166+
164167

165168
<a name="nested_git_remote_settings"></a>The `git_remote_settings` block supports:
166169

0 commit comments

Comments
 (0)