My test application has 3 EC2 instances.
After a failed deployment, I noticed that the ASG keeps bringing back the failed instances.
So after 3 failed deployments, I now have 12 instances running: 9 from the failed deployments, 3 from the live servers.
How do I stop this from happening? Thanks.
CodeDeploy will not delete the autoscaling group. The way the integration works is that if CodeDeploy fails to deploy to an ASG instance, ASG will terminate the instance and try to launch a new one and start a CodeDeploy deployment on the newly launched instances. This eventually gets into a loop and you can either delete the ASG or suspend the scaling process to prevent further scale ups.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With