AWS::AutoScaling::AutoScalingGroup RetentionTriggers - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::AutoScaling::AutoScalingGroup RetentionTriggers

Defines the specific triggers that cause instances to be retained in a Retained state rather than terminated. Each trigger corresponds to a different failure scenario during the instance lifecycle. This allows fine-grained control over when to preserve instances for manual intervention.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "TerminateHookAbandon" : String }

YAML

TerminateHookAbandon: String

Properties

TerminateHookAbandon

Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction).

Set to retain to move instances to a retained state. Set to terminate for default termination behavior.

Retained instances don't count toward desired capacity and remain until you call TerminateInstanceInAutoScalingGroup.

Required: No

Type: String

Allowed values: retain | terminate

Update requires: No interruption