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

Update doc links for lifecycle meta argument #16526

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/9461.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none
kms: added link for `lifecycle` argument to documentation for `google_kms_crypto_key`
```
3 changes: 2 additions & 1 deletion website/docs/r/api_gateway_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ The following arguments are supported:
* `api_config` -
(Required)
Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}.
When changing api configs please ensure the new config is a new resource and the lifecycle rule `create_before_destroy` is set.
When changing api configs please ensure the new config is a new resource and the
[lifecycle](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle) rule `create_before_destroy` is set.

* `gateway_id` -
(Required)
Expand Down
5 changes: 3 additions & 2 deletions website/docs/r/kms_crypto_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ Destroying a Terraform-managed CryptoKey will remove it from state
and delete all CryptoKeyVersions, rendering the key unusable, but *will
not delete the resource from the project.* When Terraform destroys these keys,
any data previously encrypted with these keys will be irrecoverable.
For this reason, it is strongly recommended that you add lifecycle hooks
to the resource to prevent accidental destruction.
For this reason, it is strongly recommended that you add
[lifecycle](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle)
hooks to the resource to prevent accidental destruction.


To get more information about CryptoKey, see:
Expand Down
3 changes: 2 additions & 1 deletion website/docs/r/spanner_database.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ To get more information about Database, see:
(and run `terraform apply` to write the field to state) in order to destroy an instance.
It is recommended to not set this field (or set it to true) until you're ready to destroy.
On older versions, it is strongly recommended to set `lifecycle { prevent_destroy = true }`
on databases in order to prevent accidental data loss. See [Terraform docs](https://www.terraform.io/docs/configuration/resources.html#prevent_destroy)
on databases in order to prevent accidental data loss. See
[Terraform docs](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#prevent_destroy)
for more information on lifecycle parameters.

<div class = "oics-button" style="float: right; margin: 0 0 -15px">
Expand Down