aws autoscaling complete-lifecycle-action --lifecycle-action-token ???????? --lifecycle-hook-name ReadyForSoftwareInstall --auto-scaling-group-name --lifecycle-action-result CONTINUE
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With