From 5322f197d5731ae328027554c3fdbf98d20a09bb Mon Sep 17 00:00:00 2001 From: Denise Yu Date: Tue, 30 Sep 2025 09:07:31 -0400 Subject: [PATCH] Update invoke-actions.mdx Remove mention of `destroy` as a lifecycle hook --- .../terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx b/content/terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx index 1ea0c22b74..ea5e8dff37 100644 --- a/content/terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx +++ b/content/terraform/v1.14.x (beta)/docs/language/invoke-actions.mdx @@ -101,7 +101,7 @@ Refer to the [`terraform apply` command](/terraform/cli/commands/apply) document ### Trigger an action when applying a configuration -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. +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. 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. @@ -124,4 +124,4 @@ Because the `event` argument includes `after_update`, Terraform also updates th ## View actions in HCP Terraform -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. \ No newline at end of file +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.