I had this problem a few times. It seems to be affect only particular instances. So it can be solved by terminating the EC2 instance (done via the EC2 page on the Management Console). Thereafter, Elastic Beanstalk will detect that there are 0 healthy instances and automatically launch a new one.
If this is a production environment and you have only 1 instance and you want minimal down time
- configure minimum instances to 2, and Beanstalk will launch another instance for you.
- terminate the problematic instance via EC2 tab, Beanstalk will launch another instance for you because minimum instance is 2
- configure minimum instance back to 1, Beanstalk will remove one of your two instances.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…