ExitAWS Elastic Beanstalk vs AWS CodeDeploy: deployment responsibility1 / 7
Explanation

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.

ResponsibilityElastic BeanstalkCodeDeploy
Primary managed unitApplication environmentDeployment to targets
Compute foundationEnvironment provisions resourcesManaged outside deployment
Runtime configurationPlatform and environment settingsTarget owner's responsibility
Application releaseDeploy environment versionOrchestrate target update