DragonXD
DragonXD

Reputation: 5

Stop and start instance to save EC2 hours

I use Elastic Beanstalk and when I stop the EC2 instance to save hours, it creates a new instance. Why does it do that and have can I prevent it from doing so?

Thank you.

Upvotes: 0

Views: 102

Answers (1)

progfan
progfan

Reputation: 2526

When you launch EB environments, the underlying EC2 instances belong to the respective EB environments. Beanstalk's goal is to ensure that your web server never goes down, so when an instance goes down/is taken down, it might take countermeasures to restore the environment to a healthy state. If you do not want your instance to be up all the time, I recommend you take a look at AWS Lambda.

Upvotes: 1

Related Questions