Elastic Beanstalk
AWS LabsOfficialPublished by AWS Labs
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
Elastic Beanstalk is an application management service that handles the operational lifecycle of your code or container images, including deployment, scaling, patching, and health monitoring. It offers two distinct modes: Standard, which runs applications on Amazon EC2 instances, and Cluster, which runs containerized applications on a managed Amazon EKS Auto Mode cluster. The service is designed for users who want to avoid managing underlying infrastructure while maintaining a standard application programming model.
What it does
- Deploys web and worker applications using either EC2 (Standard) or managed EKS (Cluster) infrastructure.
- Automates operational tasks like scaling, patching, health monitoring, and deployment rollbacks.
- Supports configuration via AWS CLI, CDK, or Terraform for infrastructure-as-code workflows.
- Provides managed HTTPS termination and load balancing for web environments.
- Integrates with AWS Secrets Manager for secure environment variable injection.
- Enables custom lifecycle hooks and environment configuration via platform-specific settings.
When to use it
- When you need a managed application platform and want to avoid manual server or container orchestration.
- When migrating applications from platforms like Heroku, Render, or Railway to AWS.
- When you require a managed operational lifecycle for web frameworks, APIs, or background workers.
- When you need to run containerized applications on Kubernetes without managing the cluster yourself.
- When you prefer a standard application programming model over the constraints of serverless functions.
Advantages
- Reduces ongoing maintenance overhead by offloading operational responsibility to AWS.
- Supports both traditional EC2-based deployments and modern containerized EKS workflows.
- Maintains standard application programming models (e.g., long-running processes, local state).
- Provides flexible deployment policies including rolling and immutable updates for zero-downtime.
- Offers consistent infrastructure-as-code support across different deployment modes.
Usage examples
- “Deploy my Python web application to Elastic Beanstalk.”
- The agent will analyze the codebase, select the appropriate Standard mode platform, configure the environment, and execute the deployment workflow.
- “I need to migrate my containerized multi-service app from Heroku to AWS without managing Kubernetes.”
- The agent will verify the application contract for Cluster mode and set up a managed EKS environment to host the services.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/awslabs/elastic-beanstalk/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip elastic-beanstalk.zip -d .agents/skills
Documentation by AWS Labs
Elastic Beanstalk
Deploy applications to production on AWS with full lifecycle management. Elastic Beanstalk is an application management service: the user provides application code or a container image, AWS manages everything underneath (deployment, scaling, patching, monitoring, health response).
There are two modes, and the choice determines every setting that follows. Standard runs the application on Amazon EC2; Cluster runs a container on a managed Amazon EKS Auto Mode cluster. See Choose the Mode.
When to Use
Elastic Beanstalk is the right choice when:
User explicitly asks for Elastic Beanstalk, EB, or a managed application platform
User says "don't want to manage servers", "managed patching", or "Heroku-like"
User is migrating from Heroku, Render, or Railway
User wants AWS to manage ongoing operational lifecycle (patching, scaling, health monitoring, rollback, deployments) after initial setup
App is a web framework, API, or background worker on a standard runtime and the user signals low infrastructure involvement
Elastic Beanstalk is NOT the right choice when:
User explicitly wants serverless/Lambda — this imposes a different programming model (event-driven functions, stateless, cold starts, 15-min max execution) rather than just eliminating server management
User wants fine-grained container orchestration control (use ECS)
User already has Kubernetes expertise and wants direct K8s access (use EKS)
App is a static site or SPA (use Amplify Hosting for the frontend; deploy the backend API separately if present)
User already has ECS task definitions or Fargate configuration
Key Distinction
ECS and EKS are infrastructure management services: the user defines and operates the deployment infrastructure (task definitions, services, clusters, scaling policies) and owns ongoing operational decisions. Elastic Beanstalk is an application management service: the user provides source code or a Docker image, and AWS provisions and operates the production environment on an ongoing basis. The result is the same reliability, but with lower ongoing maintenance cost because operational responsibility stays with the provider.
Both models support IaC (CDK, CloudFormation, Terraform). The distinction is not about tooling — it is about who manages the lifecycle after deployment.
Lambda/serverless is a different axis entirely. "Don't want to manage servers" does not mean "wants serverless" — Elastic Beanstalk also eliminates server management while preserving the standard application programming model (long-running processes, persistent connections, threads, and — in Standard mode only — local state; Cluster mode replicas have ephemeral local storage). Serverless imposes a specific programming model: stateless functions, cold starts, event-driven invocation, and a 15-minute execution ceiling. Route to Lambda only when the user explicitly asks for serverless or the workload is natively event-driven (e.g., S3 triggers, API Gateway request/response with no session state).
Choose the Mode
Decide before generating anything. The modes share an API and nothing else: a Standard mode namespace passed to a Cluster mode environment is rejected, not ignored.
Cluster mode has an entry requirement, and it is checked first. Route to Cluster only when every service can run as identical, interchangeable replicas and all durable state — uploads, sessions, caches, working files — already lives outside the container. Replica local storage is ephemeral and is lost on every restart, and there is no persistent volume option. An application that fails this goes to Standard mode, or gets changed first; a multi-service signal does not override it. See the application contract.
Then the signals:
| Signal | Mode |
|---|---|
| Source on a standard runtime; Windows or .NET Framework | Standard |
| Worker consuming an SQS queue | Standard |
| Writes uploads, sessions, or working files to local disk | Standard |
| One small application, cost is the priority | Standard |
| Several services needing private service-to-service traffic | Cluster |
| Kubernetes underneath without operating Kubernetes | Cluster |
| Managed OpenTelemetry, or faster deploys and scaling | Cluster |
A container image alone does not settle it, because Standard mode has a Docker platform too — ask. Prefer Cluster mode when the application is containerised, multi-service, and meets the contract above, since environments sharing subnets share one cluster and reach each other privately. Prefer Standard for a single container where a cluster is not yet justified. Do not propose migrating a working Standard environment unless asked: there is no in-place conversion, only new environments and a CNAME swap.
If the mode is Cluster, follow cluster mode and stop here. Everything below is Beanstalk Standard.
Workflow (Standard)
This skill is invoked after the deploy skill selects Elastic Beanstalk as the deployment target. The deploy skill handles codebase analysis and cost estimation. This skill handles EB-specific configuration:
Map to platform - Select the EB platform branch (see platforms)
Configure - Environment type (web server or worker), instance size, scaling
Generate - AWS CLI commands, CDK, or Terraform (see IaC section below)
Deploy - Execute with user confirmation
Defaults
| Setting | Dev | Production |
|---|---|---|
| Environment type (web) | Load-balanced (min=1, max=1) | Load-balanced, Multi-AZ |
| Environment type (worker) | Auto Scaling group (min=1, max=1) | Auto Scaling group (min=2, max=4) |
| Instance | t3.small | t3.medium or larger |
| Deployments | All-at-once | Rolling with additional batch |
| Health reporting | Enhanced | Enhanced |
| Managed updates | Enabled (weekly) | Enabled (maintenance window) |
| HTTPS (web only) | ACM certificate + ALB | ACM certificate + ALB |
Default to dev unless user says "production" or "prod".
Always use load-balanced environments for web server types. This ensures instances stay in private subnets behind an ALB, HTTPS terminates via ACM automatically, and scaling up later is a config change rather than an environment type migration. Dev deployments with min=max=1 cause brief downtime on deploy (single instance, all-at-once). If zero-downtime dev is needed, use min=1 max=2 with rolling.
Worker environments do not have load balancers — they receive work from SQS and are scaled via Auto Scaling group settings.
Environment Types
| Signal in Codebase | Environment Type |
|---|---|
| HTTP listener, web framework, API routes | Web server |
| Queue-based consumer, SQS processing, no HTTP serving | Worker |
| HTTP serving + queue-based background processing | Web server + separate Worker environment |
Worker environments receive work via an SQS queue managed by Elastic Beanstalk.
EB's SQS daemon sends HTTP POST requests to the application at a configurable
path (default: POST /). The application must expose this HTTP endpoint to
process each message — no SQS SDK integration required.
Worker environments also support periodic tasks via cron.yaml for scheduled
jobs (alternative to EventBridge + Lambda when the user is already using EB).
If the app uses in-process background threads or async tasks (not queue-based), a single web server environment is sufficient — do not create a separate Worker.
IaC Generation
Default: AWS CLI — no extra tooling to install. The agent orchestrates the multi-step workflow:
aws elasticbeanstalk create-storage-location→ returns the S3 bucket (idempotent — returns existing bucket if already created)aws elasticbeanstalk create-applicationZip source bundle, upload to the bucket from step 1
aws elasticbeanstalk create-application-versionaws elasticbeanstalk create-environmentwith--option-settings(web:--tier Name=WebServer,Type=Standard, worker:--tier Name=Worker,Type=SQS/HTTP)aws elasticbeanstalk wait environment-updatedSubsequent deploys: new version +
update-environment
Resolve the --solution-stack-name by running
aws elasticbeanstalk list-available-solution-stacks and filtering for the
detected platform (e.g., ".NET" + "Amazon Linux 2023"). Alternatively, use
--platform-arn from aws elasticbeanstalk list-platform-versions.
Use .ebextensions/ and platform hooks for customization.
See AWS CLI EB reference for full command documentation.
Override: CDK (TypeScript) when the user has an existing CDK project, wants repeatable IaC, or explicitly requests it:
CfnApplication,CfnEnvironment,CfnConfigurationTemplate
Override: Terraform when the user's repo already has Terraform:
aws_elastic_beanstalk_application,aws_elastic_beanstalk_environment
CDK and Terraform templates are scannable by cfn-nag/checkov pre-deploy.
Security
Apply these automatically:
Web server instances in private subnets behind ALB
Worker instances in private subnets with NAT Gateway for outbound
HTTPS via ACM certificate on ALB (web server environments)
IAM instance profile with least-privilege permissions — scan source code for AWS SDK client usage to determine required actions (e.g.,
AmazonBedrockRuntimeClient→bedrock:InvokeModel,AmazonS3Client→s3:GetObject/s3:PutObjecton specific buckets)Enhanced health reporting enabled
Managed platform updates enabled
Security groups: ALB accepts 443, instances accept only from ALB
See the deploy skill's security defaults for encryption, VPC placement, and IAM patterns.
Cost
Elastic Beanstalk has no service fee. Cost = underlying AWS resources. Query the awspricing MCP server for region-accurate estimates. Approximate us-east-1 pricing:
| Configuration | Estimated Monthly Cost |
|---|---|
| Dev web (1x t3.small + ALB) | ~$35-40 |
| Dev worker (1x t3.small, no ALB) | ~$15-20 |
| Production web (4x t3.medium + ALB, Multi-AZ) | ~$150-200 |
Add RDS/Aurora costs separately if database is included.
References
Beanstalk Cluster mode — containers on managed EKS
Supported platforms and detection — Standard mode
Configuration and customization — Standard mode
Files
- ATTRIBUTION.mdAdded by AutoGineer919 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer89 B
- SKILL.md12.0 KiB
- references/cluster-mode.md39.8 KiB
- references/configuration.md5.5 KiB
- references/platforms.md3.4 KiB
references/platforms.md
Supported Platforms
These rules apply after Elastic Beanstalk has been selected as the deployment target by the deploy skill, and after Beanstalk Standard mode has been selected. Beanstalk Cluster mode has no platform — you supply a container image, or source that Elastic Beanstalk builds into one. See cluster mode.
Detect the application's language and framework, then map to an EB platform branch.
Platform Detection
| Signal in Codebase | EB Platform | Notes |
|---|---|---|
requirements.txt, Pipfile, pyproject.toml | Python on AL2023 | Django, Flask, FastAPI |
package.json (backend Node.js) | Node.js on AL2023 | Express, NestJS, Fastify, Hono |
pom.xml, build.gradle, .jar | Corretto on AL2023 | Spring Boot, Quarkus |
pom.xml, build.gradle, .war | Tomcat on AL2023 | WAR-based Java web apps |
Gemfile, config.ru | Ruby on AL2023 | Rails, Sinatra |
go.mod | Go on AL2023 | Any Go HTTP server |
*.csproj, *.sln (ASP.NET Core) | .NET on AL2023 | ASP.NET Core on Linux |
*.csproj, *.sln (.NET Framework) | .NET on Windows Server | IIS, .NET Framework 4.x |
composer.json | PHP on AL2023 | Laravel, Symfony |
Dockerfile | Docker on AL2023 | Any containerized app |
Platform Selection Rules
If
Dockerfileexists AND a language runtime is also detected, ask the user for an explicit selection.If multiple languages detected, ask the user for an explicit selection.
Always use Amazon Linux 2023 unless the app requires Windows (.NET Framework, IIS dependencies).
For Java apps: if
.warfile, deploy to Tomcat platform. If.jarwith embedded server (Spring Boot), use Corretto platform.Always use the latest supported runtime version unless the application specifies a version constraint (e.g.,
enginesinpackage.json,<TargetFramework>in.csproj).
Supported Deployment Artifacts
| Platform | Accepted Input |
|---|---|
| Language platforms | Source bundle (zip of source code) |
| .NET | Published output (dotnet publish zip, not source) |
| Java (.jar) | Built artifact (fat jar or exploded directory) |
| Docker | Source bundle containing Dockerfile |
| Docker (pre-built) | Dockerfile with FROM referencing ECR/registry image |
.NET and Java platforms require pre-built artifacts. Run dotnet publish or
mvn package/gradle build before zipping. Other language platforms (Python,
Node.js, Ruby, Go, PHP) accept raw source and build on-instance.
Worker Platform Considerations
Worker environments use the same platforms as web server environments. The
difference is the SQS daemon that delivers messages to the application over HTTP
on localhost. The application must expose an HTTP endpoint (default: POST /)
that processes each message.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS Labs
- Publisher
- AWS Labs (Official)
- Source
- awslabs/agent-plugins · plugins/deploy-on-aws/skills/elastic-beanstalk · commit fbefb37
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS Labs or AWS Labs.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download elastic-beanstalk.zip