AWS · Compute

AWS Elastic Beanstalk

Deploy web applications by uploading code; Elastic Beanstalk provisions and manages the EC2, load balancing and scaling underneath.

On the SAA-C03 exam listAutomation

What it is and what problem it solves

AWS Elastic Beanstalk is a platform service: you upload application code for a supported platform (Java, .NET, Node.js, Python, Ruby, PHP, Go or Docker) and it creates an environment with EC2 instances, an Auto Scaling group, a load balancer, monitoring and logging. You still own the resources and can change them, but Beanstalk handles deployment, platform updates and health monitoring.

Deployment policies (all at once, rolling, rolling with an additional batch, immutable, traffic splitting) control how new versions roll out, and blue/green deployments swap environment URLs.

When to use it

  • A small team wants to deploy a standard web app or API quickly without designing the infrastructure.
  • You want managed platform updates and deployments but still access to the underlying resources.
  • Lifting a traditional web application to AWS with minimal change.

When to avoid it

  • Highly customised infrastructure, where infrastructure as code (CloudFormation, CDK) gives more control.
  • Serverless or container-first designs: Lambda, ECS on Fargate or EKS fit better.

Limits and quotas

ItemValueContextSource
Applications per account per Region 75
Can be raised with a quota request
Source
checked
Environments per account per Region 200
Can be raised with a quota request
Source
checked
Application versions per account per Region 1,000
Can be raised with a quota request
Source
checked

Quotas and limits change. Check the linked source before designing around a number.

Cost model

What you pay for

There is no additional charge for Elastic Beanstalk. You pay for the resources it creates: EC2 instances, load balancers, NAT gateways in private subnets, and CloudWatch beyond basic metrics.

Where it is cost-efficient

Small to medium web apps where a managed platform saves operations time.

Where costs grow

Several environments (development, staging, production) each with a load balancer and instances running all the time.

Cost controls and common surprises

Use single-instance environments for development, terminate unused environments, and right-size instances.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Managed platform updates, instance profiles for application permissions, and environments in your VPC.

What you configure

Apply managed platform updates, keep instances in private subnets behind the load balancer, store secrets outside the code bundle, and restrict who can deploy.

Logging and monitoring

Enhanced health reporting, logs to CloudWatch Logs, and CloudTrail.

Related security services

IAM, Secrets Manager, CloudWatch, ACM for HTTPS.

Shared responsibility

AWS manages the platform stack you choose. You manage your application, its configuration and its data.

Availability, backup and failure behavior

Load-balanced environments run instances in several Availability Zones with Auto Scaling. Immutable and blue/green deployments reduce the risk of a bad release.

Common service combinations

RDS (preferably created outside the environment so it is not deleted with it), CloudWatch, ACM, Route 53.

Business application examples

  • A startup deploys its Django app to a load-balanced environment and uses rolling updates.

Exam cues and common confusions

  • Developers upload code; AWS handles capacity, load balancing, scaling and monitoring: Elastic Beanstalk.
  • Zero-downtime release with quick rollback: immutable deployments or blue/green (swap URLs).
  • Database lifecycle: create RDS outside the Beanstalk environment.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake