Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get a lifecycle-action-token for aws autoscaling complete-lifecycle-action?

aws autoscaling complete-lifecycle-action --lifecycle-action-token ???????? --lifecycle-hook-name ReadyForSoftwareInstall --auto-scaling-group-name  --lifecycle-action-result CONTINUE
like image 701
Maxim Panfilov Avatar asked Oct 15 '25 14:10

Maxim Panfilov


2 Answers

Actually you can avoid to use the token and use the instance_id:

aws autoscaling complete-lifecycle-action --auto-scaling-group-name my_service  --lifecycle-hook-name my_lifecycle_hook --instance-id my_instance_id --lifecycle-action-result CONTINUE
like image 61
Alex Avatar answered Oct 18 '25 06:10

Alex


The lifecycle-action-token is provided by Auto Scaling in the message sent as part of processing the lifecycle hook. You need to get the token from the original message.

If this is a CodeDeploy hook in your Auto Scaling Group, that message goes to CodeDeploy. You can't manually close the Auto Scaling lifecycle action in that case.

like image 38
Jonathan Turpie Avatar answered Oct 18 '25 08:10

Jonathan Turpie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!