aws/aws-codedeploy-agent

[Feature request] Deployments to ASG Warm pool instances using CodeDeploy lifecycle hooks

pawelhajski opened this issue · 4 comments

Currently, CodeDeploy lifecycle hooks in EC2 Auto Scaling are not working with Warm pool instances in Warmed:Pending:Wait state. Please make it possible for CodeDeploy to work with Warm pool instances.

cocest commented

I am currently experiencing the exact problem, and this happens if you have a warm pool attached to your AWS auto scaling group (ASG). I am using AWS launch template's user data. Even though my cloud configuration script invoke AWS lifecycle hook to complete the process. If I am to SSH into the launch instance I can complete the lifecycle hook manually. My only conclusion is that the lifecycle hook is only invoked on Warmed:Pending:Wait and never Pending:Wait event for it to transition into InService state.

One of the way to overcome this issue is to deamonise your bash script to complete the lifecycle hook on system startup.

This is very important and helpful feature. Please make it possible for CodeDeploy to work with Warm pool instances.