This template creates a lifecycle hook that supports a custom action at instance termination. The lifecycle hook is associated with an Auto Scaling group specified by the `myASG` parameter. The `NotificationMetadata` property is used to provide additional information to be sent with the notification, such as the name of the cluster to which the instance belongs.

myTerminationLifecycleHook
AWS::AutoScaling::LifecycleHook


CloudFormation Template

Share Template