Skip to content

Commit 8b2a1af

Browse files
committed
add info to prevent_destroy in resource block
1 parent ea8d71f commit 8b2a1af

File tree

1 file changed

+1
-1
lines changed
  • content/terraform/v1.14.x (beta)/docs/language/block

1 file changed

+1
-1
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.
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).
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.

0 commit comments

Comments
 (0)