Elastic Beanstalk does not deploy the app after autoscaling.

So because of ``` NetworkOut < 2000000 for 1 datapoints within 5 minutes``` policy in the autoscaling group my instance got terminated. Then it created a new instance but did not redeploy my app on the new instance. Why is that? Shouldn’t it be automatically deploying the app on the new instance?

By the way, I am using Elastic Beanstalk and the flask backend.

If you can help me figure out why it is happening, then that would be awesome?

Go to the Autoscaling settings under EC2 > Auto Scaling Groups and select the ASG created by EB. From there, create your own autoscaling policies based on CPU usage, etc. You can also disable all the auto-scaling policies created by ElasticBeanstalk.

Sure. But don’t you think it’s pretty silly of AWS to terminate the instance and create a new one but not automatically deploy the application to the new instance?

Yes