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:
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 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".
The two .sh files do nothing fancy (and codedeploy passed those steps so I don't think that's the problem).
Can anyone point me to a direction? I don't get any error messages, so I don't even know how to debug it.
Thanks