The managed boundary is different
How Beanstalk's managed application environments differ from CodeDeploy's deployment orchestration over compute targets, and when to choose each. · advanced
Elastic Beanstalk manages an application environment, not just the act of installing a release. An environment combines an application version, a platform, configuration, and running AWS resources. For a load-balanced EC2 web environment, Beanstalk provisions and coordinates instances, an Auto Scaling group, and a load balancer, and provides application health reporting.
CodeDeploy manages deployment execution over supported compute targets: EC2 and on-premises instances, ECS services, and Lambda functions. Its application is a logical container for deployment information, not a hosted runtime. The compute foundation has a lifecycle outside CodeDeploy, even when CodeDeploy coordinates replacement resources during a deployment.
The distinction is environment management versus deployment orchestration, not automatic versus manual deployment. Both automate releases. Beanstalk also supplies the application-environment abstraction; its normal application deployments do not require you to configure CodeDeploy underneath them.
| Responsibility | Elastic Beanstalk | CodeDeploy |
|---|---|---|
| Primary managed unit | Application environment | Deployment to targets |
| Compute foundation | Environment provisions resources | Managed outside deployment |
| Runtime configuration | Platform and environment settings | Target owner's responsibility |
| Application release | Deploy environment version | Orchestrate target update |