AWS Elastic Beanstalk与EC2容器服务(ECS)-Docker

问题描述:

一直在使用Docker和Elastic Beanstalk来部署相对简单的应用程序,并且运行良好。现在,随着ECS的出现,我很想知道两种服务之间的区别,以及为什么一个服务可以在另一个服务上使用?

Have been running Docker with Elastic Beanstalk to deploy a relatively simple app, and it has been working great. Now with ECS on the horizon, I am interested to know what the differences are between the two services, and why one might use one over the other?

Amazon的文档表示以下内容:

Amazon's documentation says the following:

问:Amazon ECS与AWS Elastic Beanstalk有何不同?

AWS Elastic Beanstalk是一个可帮助客户的应用程序管理平台轻松部署和扩展Web应用程序和服务。它使构建块(例如EC2,RDS,Elastic Load Balancing,Auto Scaling,CloudWatch)的配置,应用程序的部署以及从用户抽象的运行状况监控保持摘要状态,因此他们可以只专注于编写代码。您只需指定要部署的容器映像,CPU和内存要求,端口映射以及容器链接。 Elastic Beanstalk将自动处理所有详细信息,例如,设置Amazon ECS集群,平衡负载,自动扩展,监控以及在整个集群中放置容器。
Elastic Beanstalk是理想的选择,如果您想利用容器的好处,但只想通过上传容器映像来简化从开发到生产的部署应用程序的部署。如果您想对自定义应用程序架构进行更细粒度的控制,则可以直接与Amazon ECS一起使用。