Forked from mikepfeiffer/gist:4aea8cba143ff31fa90a33ff4818b809
Created
January 2, 2017 23:12
-
-
Save gsmurali/73b99ff8d6ed313579aae0bbc22f8f25 to your computer and use it in GitHub Desktop.
How to create and complete a lifecycle hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws autoscaling put-lifecycle-hook \ | |
--lifecycle-hook-name scale-out-hook \ | |
--auto-scaling-group-name MyASG \ | |
--lifecycle-transition autoscaling:EC2_INSTANCE_LAUNCHING | |
aws autoscaling complete-lifecycle-action \ | |
--lifecycle-action-result CONTINUE \ | |
--instance-id i-0680775fb68bc97a5 \ | |
--lifecycle-hook-name scale-out-hook \ | |
--auto-scaling-group-name MyASG | |
aws autoscaling complete-lifecycle-action \ | |
--lifecycle-action-result ABANDON \ | |
--instance-id i-033f4289b461aae75 \ | |
--lifecycle-hook-name scale-out-hook \ | |
--auto-scaling-group-name MyASG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment