什么是AWS Elastic Beanstalk
AWS Elastic Beanstalk 可降低管理的复杂性,但不会影响选择或控制。您只需上传应用程序,AWS Elastic Beanstalk 将自动处理有关容量预配置、负载均衡、扩展和应用程序运行状况监控的部署细节。
什么是 AWS CloudFormation
AWS CloudFormation 是一项服务,可帮助您对 Amazon Web Services 资源进行建模和设置,以便能花较少的时间管理这些资源,而将更多的时间花在运行于 AWS 中的应用程序上。
CloudFormation可以帮助您简化基础设施管理、快速复制基础设施、以及轻松控制和跟踪对您的基础设施所做的更改。
Elastic Beanstalk vs CloudFormation
Elastic Beanstalk和CloudFormation都不收取额外费用,只需支付存储和运行应用程序所需的AWS资源。
Elastic Beanstalk旨在使开发人员的更轻松的进行代码部署,Elastic Beanstalk是将WEB应用程序部署到AWS快速简便的方法,而CloudFormation更多的被系统工程师用于基础设施的构建;Elastic Beanstalk可以自动生成CloudFormation模板来构建应用程序运行的环境,AWS CloudFormation属于技术堆栈的"基础结构构建工具"类别,而AWS Elastic Beanstalk可以分类为"平台即服务"。
总结:
如果您的应用程序是Elastic Beanstalk支持的标准Web层应用程序,并且您希望为应用程序提供易于管理,高度可扩展的运行环境,请使用Elastic Beanstalk。
如果您想要直接管理应用程序的所有AWS资源,或具有大量自定义实例设置或部署过程可以直接使用CloudFormation。
What is AWS Elastic Beanstalk
AWS Elastic Beanstalk reduces management complexity without sacrificing choice or control. You simply upload your application, and AWS Elastic Beanstalk automatically handles deployment details including capacity provisioning, load balancing, scaling, and application health monitoring.
What is AWS CloudFormation
AWS CloudFormation is a service that helps you model and set up Amazon Web Services resources so you can spend less time managing those resources and more time focusing on applications running on AWS.
CloudFormation can help you simplify infrastructure management, quickly replicate infrastructure, and easily control and track changes to your infrastructure.
Elastic Beanstalk vs CloudFormation
Neither Elastic Beanstalk nor CloudFormation charges additional fees—you only pay for the AWS resources needed to store and run your applications.
Elastic Beanstalk is designed to make code deployment easier for developers. Elastic Beanstalk is a quick and easy way to deploy web applications to AWS, while CloudFormation is more commonly used by system engineers for infrastructure construction; Elastic Beanstalk can automatically generate CloudFormation templates to build the environment for running applications. AWS CloudFormation belongs to the "infrastructure building tools" category of the technology stack, while AWS Elastic Beanstalk can be categorized as "Platform as a Service".
Summary:
If your application is a standard web-tier application supported by Elastic Beanstalk, and you want to provide an easy-to-manage, highly scalable runtime environment for your application, use Elastic Beanstalk.
If you want to directly manage all AWS resources for your application, or have extensive custom instance settings or deployment processes, you can use CloudFormation directly.