title: AWS CodeDeploy stuck in AllowTraffic step
body: <p>I'm using AWS CodeDeploy to deploy my project (triggered by CodePipeline) to an autoscaling group (EC2 instances behind an ALB). This is my appSpec file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>version: 0.0
  os: linux
  files:
    - source: /
      destination: /var/www/html/test-deploy
      overwrite: true
  permissions:
    - object: /var/www/html/test-deploy/codedeploy
      pattern: "*.sh"
      owner: root
      group: root
      mode: 755
      type:
        - file
  hooks:
    BeforeInstall:
      - location: codedeploy/before_install.sh
        timeout: 180
    AfterInstall:
      - location: codedeploy/after_install.sh
        runas: centos
        timeout: 180</code></pre>
  </div>
  </div>
  </p>
  
  <p>The files get deployed successfully to the EC2 instance, but for some reason after the "BeforeAllowTraffic" nothing happens, like I waited 15 min and the next step was still at "pending".</p>
  
  <p>The two .sh files do nothing fancy (and codedeploy passed those steps so I don't think that's the problem). </p>
  
  <p>Can anyone point me to a direction? I don't get any error messages, so I don't even know how to debug it.</p>
  
  <p>Thanks</p>