title: AWS Codedeploy BlockTraffic/AllowTraffic durations
body: <p>I've been using AWS CodeDeploy to push our applications live, but it always takes ages doing the BlockTraffic and AllowTraffic steps. Currently, I have an application load balancer(ALB) with three EC2 nodes initially(behind an autoscaling group). So, If I do a CodeDeploy OneAtATime, the whole process takes up to 25 minutes.</p>
  
  <p>The load balancer I'm using it with had connection draining set to 300s. I thought it was the reason for drag out. However, I disabled Connection Draining and got the same results. I then enabled Connection Draining and set timeout to 5 seconds and still got the same results.</p>
  
  <p>Further, I found out CodeDeploy depends on the ALB Health Check settings. according to the  AWS documentation</p>
  
  <blockquote>
    <p>After an instance is bound to the ALB, CodeDeploy waits for the
    status of the instance to be healthy ("inService") behind the load
    balancer. This health check is done by ALB and depends on the health
    check configuration.</p>
  </blockquote>
  
  <p>So I tried by setting low timeouts and thresholds for health check settings. Even those changes didn't reduce the deployment time much.</p>
  
  <p>Can someone direct me to a proper solution to speed up the process?</p>