Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/examples/autoscaling/describe-lifecycle-hooks.rst
1567 views
**To describe your lifecycle hooks**

This example describes the lifecycle hooks for the specified Auto Scaling group. ::

    aws autoscaling describe-lifecycle-hooks \
        --auto-scaling-group-name my-asg

Output::

    {
        "LifecycleHooks": [
            {
                "GlobalTimeout": 3000,
                "HeartbeatTimeout": 30,
                "AutoScalingGroupName": "my-asg",
                "LifecycleHookName": "my-launch-hook",
                "DefaultResult": "ABANDON",
                "LifecycleTransition": "autoscaling:EC2_INSTANCE_LAUNCHING"
            },
            {
                "GlobalTimeout": 6000,
                "HeartbeatTimeout": 60,
                "AutoScalingGroupName": "my-asg",
                "LifecycleHookName": "my-termination-hook",
                "DefaultResult": "CONTINUE",
                "LifecycleTransition": "autoscaling:EC2_INSTANCE_TERMINATING"
            }
        ]
    }