Skip to content

Commit 0e9d319

Browse files
Apply suggestions from code review
Co-authored-by: Brian McClain <brianmmcclain@gmail.com>
1 parent 703438d commit 0e9d319

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/terraform/v1.14.x (beta)/docs/language/block/resource.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ You can specify the following lifecycle rules to manage how Terraform performs o
330330

331331
- [`action_trigger](#action_trigger)`: Specifies a set of arguments that determine which events trigger one or more provider actions, under which conditions the action runs, and which actions Terraform invokes.
332332
- [`create_before_destroy`](#create_before_destroy): Terraform creates a replacement resource before destroying the current resource.
333-
- [`prevent_destroy`](#prevent_destroy): Terraform rejects operations to destroy the resource and returns an error. This rule doesn't prevent Terraform from destroying the resource if you remove the resource configuration. For instructions on how to remove a resource from state without destroying the actual resource, tefer to [Remove a resource from state](/terraform/language/state/remove).
333+
- [`prevent_destroy`](#prevent_destroy): Terraform rejects operations to destroy the resource and returns an error. This rule doesn't prevent Terraform from destroying the resource if you remove the resource configuration. For instructions on how to remove a resource from state without destroying the actual resource, refer to [Remove a resource from state](/terraform/language/state/remove).
334334
- [`ignore_changes`](#ignore_changes): Specifies a list of resource attributes that Terraform ignores changes to. Otherwise, Terraform attempts to update the actual resource to match the configuration.
335335
- [`replace_triggered_by`](#replace-triggered_by): Terraform replaces the resource when any of the referenced resources or specified attributes change.
336336
- [`precondition`](#precondition): Specifies a condition that Terraform evaluates before creating the resource. Refer to [Validate your configuration](/terraform/language/validate) for more information.

content/terraform/v1.14.x (beta)/docs/language/meta-arguments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ The `lifecycle` block accepts a rule that customizes how Terraform performs the
194194

195195
Except for `create_before_destroy`, Terraform does not explicitly record a resource's `lifecycle` rule to state. As a result, Terraform destroys the actual infrastructure during an apply operation if you remove the resource's configuration, even if `prevent_destroy` is enabled. Refer to [Remove a resource from state](/terraform/language/state/remove) for instructions on how to remove a resource from state without destroying the actual resource.
196196

197-
Terraform records the results of `precondition` and `postcondition` checks to state, but not the contents of the checks. Terraform may also record values in `lifecycle` rules as resource dependencies.
197+
Terraform records the results of `precondition` and `postcondition` checks to state, but not the contents of the checks.
198198

199199
### Rules
200200

0 commit comments

Comments
 (0)