"A web app on AWS means wiring servers by hand." It can, if you want that. But for a standard web application, AWS Elastic Beanstalk does the wiring: you hand over your code and it builds a working environment around it, with servers, load balancing, scaling and monitoring already connected.
What Elastic Beanstalk is
Elastic Beanstalk is a deployment service for web applications. You choose a platform, upload your code, and Beanstalk launches everything needed to run it. Supported platforms include Go, Java, .NET, Node.js, PHP, Python and Ruby, plus Docker when you want to bring your own container.
Three terms explain how it is organised:
- An application is the project: a container for versions and environments.
- An application version is one labelled upload of your code, stored in Amazon S3.
- An environment is the set of AWS resources running one version. Many teams keep at least two: test and production.
What it builds for you
In the classic setup, a web server environment creates, in your account:
- EC2 instances running your platform and code
- an Auto Scaling group that adds and removes instances
- a load balancer in front of them (or a single instance, for cheap test environments)
- security groups, health monitoring and log collection
Nothing is hidden. These are ordinary resources that you can see in their own consoles and adjust through the environment's configuration. That is the difference from a fully closed platform: you start with sensible defaults and keep the ability to take control later.
AWS also now offers a second mode that runs environments as containers on Amazon EKS; AWS's docs call the two Beanstalk Standard (on EC2, described here) and Beanstalk Cluster.
Cost and deployments
There is no additional charge for Elastic Beanstalk. You pay for the resources it launches: instances, load balancer, storage, data transfer. A load-balanced environment left running costs money every hour, and a forgotten test environment is a classic source of waste.
To release, upload a new version. Beanstalk offers several deployment policies: all at once (fast, with a short outage), rolling (in batches, so part of the fleet keeps serving), and safer options that launch fresh instances before switching. You can also keep a second environment and swap URLs between them for a blue/green release.
Common mistakes:
- Changing the instances by hand. They are replaced on scaling and deployment; put changes in the environment configuration instead.
- Creating the production database inside the environment. Its lifecycle is then tied to the environment. Run it separately.
When to use it
Beanstalk suits a small team with a conventional web app that wants to be in production this week without designing infrastructure. If you need fine control of the network, many services, or you're already on containers and infrastructure as code, you will probably outgrow it.
Where AI fits
Two ways. First, as a quick home for a small AI web app: a chat page or internal tool whose backend calls a model on Amazon Bedrock. Give the environment's instance profile permission to invoke the model, deploy, and you have a public endpoint without building a platform.
Second, Beanstalk now has AI-powered environment analysis. When an environment's health is Warning, Degraded or Severe, you can request an analysis: Beanstalk collects recent events, health data and logs, sends them to Amazon Bedrock, and returns likely root causes with recommended fixes. It needs a recent platform version, and for standard environments the instance profile needs Bedrock permissions and normal Bedrock pricing applies. Treat the result as a starting point for troubleshooting, not a verdict.
Quick recap
- Code in, environment out: Beanstalk builds servers, load balancing, scaling and monitoring.
- The resources stay yours, visible and adjustable in your account.
- Beanstalk is free; you pay for what it launches.