Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

If I understand correctly, Elastic Beanstalk creates an EC2 instance for each application you deploy. However, an application typically doesn't run at 100% CPU, yet amazon charges you per instance used. So if I deployed 5 apps with Dockerfiles, AWS would charge the usage of 5 EC2 instances per month.

With this in mind, can't I just simply launch an EC2, install docker and run my containers in there? Wouldn't that be much more cost-effective?

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

AWS offers a service called Elastic Beanstalk that comes with the EC2 container Service(ECS). EB supports multiple container Docker environments. So, an EB environment containing multiple instances in an autoscaling group can run multiple containers per instances. And these containers are managed by through ECS agent and its API.

You can refer to the following link for more information.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_ecstutorial.html

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...