Search code examples
amazon-web-servicesaws-code-deploy

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

Solution

  • 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.