Skip to content

Commit 5322f19

Browse files
authored
Update invoke-actions.mdx
Remove mention of `destroy` as a lifecycle hook
1 parent b6eb339 commit 5322f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Refer to the [`terraform apply` command](/terraform/cli/commands/apply) document
101101

102102
### Trigger an action when applying a configuration
103103

104-
To trigger an action on resource lifecycle events, such as creating or destroying a resource, configure an `action_trigger` block and specify the action to run and the events that trigger the action. The `action_trigger` block is a member of the `lifecycle` block nested in a `resource` block. Refer to the [`action_trigger` documentation](/terraform/language/block/resource#action_trigger) for details about configuring the block.
104+
To trigger an action on resource lifecycle events, such as creating a resource, configure an `action_trigger` block and specify the action to run and the events that trigger the action. The `action_trigger` block is a member of the `lifecycle` block nested in a `resource` block. Refer to the [`action_trigger` documentation](/terraform/language/block/resource#action_trigger) for details about configuring the block.
105105

106106
In the following example, Terraform invokes the `action.aws_lambda_invoke.example` action after creating the `aws_lambda_function.example` resource. Terraform also invokes the action during a `terraform apply` operation if the `resource` block configuration changes.
107107

@@ -124,4 +124,4 @@ Because the `event` argument includes `after_update`, Terraform also updates th
124124

125125
## View actions in HCP Terraform
126126

127-
If your workspace is connected to your HCP Terraform organization, you can monitor action runs in HCP Terraform. Refer to [Action runs](/terraform/cloud-docs/run/manage#action-runs) in the HCP Terraform documentation for more information.
127+
If your workspace is connected to your HCP Terraform organization, you can monitor action runs in HCP Terraform. Refer to [Action runs](/terraform/cloud-docs/run/manage#action-runs) in the HCP Terraform documentation for more information.

0 commit comments

Comments
 (0)