Skip to content

Commit

Permalink
Update doc links for lifecycle meta argument (#9461)
Browse files Browse the repository at this point in the history
[upstream:5320b7984e43c4f7ff843058ea029551327e4a06]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Nov 13, 2023
1 parent 90f6837 commit ff4d912
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
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`
```
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ func ResourceApiGatewayGateway() *schema.Resource {
Required: true,
DiffSuppressFunc: tpgresource.CompareResourceNames,
Description: `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": {
Type: schema.TypeString,
Expand Down
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

0 comments on commit ff4d912

Please sign in to comment.