Amazon ECS Express Mode: One-Command Deploys, Pricing and the App Runner Replacement (2026)
Amazon ECS Express Mode deploys a container image as a production web app with one command: it creates the Fargate service, an HTTPS load balancer, auto scaling, logs and a public URL for you. It’s also the official replacement for App Runner, which is closed to new customers.
Here’s the surprise: “no additional charge” isn’t the same as cheap. One default Express Mode service runs a 1 vCPU, 2 GB task around the clock behind its own load balancer, with three public IPv4 addresses. That’s about $63 a month before a single visitor arrives. The second service is cheaper, because up to 25 share the same load balancer.
Jake wanted a small booking page for the shop online by Friday. Ethan had the container image ready, but the App Runner sign-up page told him the service wasn’t taking new customers.
Jake: "So we have to learn load balancers and target groups now?"
Ethan: "Nope. Express Mode builds all of that from one command. We just need two IAM roles first."
New to this? The plain-English version
- Container image: your app packaged with everything it needs, usually stored in Amazon ECR.
- Amazon ECS: AWS’s service for running containers. Fargate runs them without servers for you to manage.
- Load balancer (ALB): the front door that receives web traffic over HTTPS and passes it to your containers.
- Task execution role: lets ECS pull your image and write logs.
- Infrastructure role: lets ECS create the load balancer, security groups and scaling for you.
Jake: "So it’s like renting a shop that comes with the door, lights and till already fitted?"
Ethan: "Exactly. We bring the stock, which is our container, and two keys, which are the roles."
Is Express Mode right for you? Three quick questions
- Is your app a stateless web app or API that answers HTTP requests? That’s what it’s built for.
- Do you have a container image? Express Mode doesn’t build from source code.
- Is about $63 a month for a small always-on app acceptable? If you need scale-to-zero, look at Lambda web functions instead.
How to deploy with ECS Express Mode (AWS CLI)
Step 1: create the two IAM roles
aws iam create-role --role-name ecsTaskExecutionRole \
--assume-role-policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"ecs-tasks.amazonaws.com"},"Action":"sts:AssumeRole"}]}'
aws iam attach-role-policy --role-name ecsTaskExecutionRole \
--policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
aws iam create-role --role-name ecsInfrastructureRoleForExpressServices \
--assume-role-policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"ecs.amazonaws.com"},"Action":"sts:AssumeRole"}]}'
aws iam attach-role-policy --role-name ecsInfrastructureRoleForExpressServices \
--policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRoleforExpressGatewayServices
Step 2: create the service
aws ecs create-express-gateway-service \
--primary-container '{"image":"111122223333.dkr.ecr.us-east-1.amazonaws.com/booking:1.0","containerPort":8080}' \
--execution-role-arn arn:aws:iam::111122223333:role/ecsTaskExecutionRole \
--infrastructure-role-arn arn:aws:iam::111122223333:role/ecsInfrastructureRoleForExpressServices \
--service-name booking \
--health-check-path /health \
--monitor-resources
--monitor-resourcesshows each resource as it’s created; when it finishes, the URL is ready.- Without
containerPort, Express Mode assumes port 80. Without--health-check-path, it checks/. - Add
--cpu 2 --memory 4,--cpu-architecture ARM64or--scaling-target '{"minTaskCount":3,"maxTaskCount":100}'to change the defaults. - Got “Unable to assume the service linked role” right after creating the roles? IAM needs about a minute; run it again.
- Change it later with
update-express-gateway-service; remove it withdelete-express-gateway-service.
What Express Mode creates (and its defaults)
| Piece | Default | Can you change it? |
|---|---|---|
| Cluster | The default cluster, Fargate capacity | Only when creating |
| Task size | 1 vCPU, 2 GB, x86_64 | Yes (--cpu, --memory, ARM64) |
| Container | Named Main, port 80, image tag pinned to a digest | Port yes; don’t rename Main |
| Scaling | 1 to 20 tasks, target 60% CPU | Yes (--scaling-target) |
| Deployments | Canary, with an alarm for faulty deployments | Strategy can’t be changed |
| Health checks | Path /, 300-second grace period | Path yes (--health-check-path) |
| Load balancer | HTTPS ALB with an ACM certificate, shared by up to 25 services per VPC | Load balancer settings can’t be updated through Express Mode |
| Network | Default VPC public subnets, public IPs on tasks | Yes, on create (your subnets and security groups) |
| Availability | AZ rebalancing on | Yes, on the ECS service |
Everything lives in your account and shows up in the normal consoles, so you can tune it later. Express Mode already sets several items from our ECS production readiness checklist: AZ rebalancing, a 300-second grace period and safe deployments.
Networking gotcha: the first Express Mode service in a VPC decides which subnets its shared load balancer uses. Later services must use subnets in the same zones, so give the first one subnets from every zone you’ll want. Private subnets get an internal load balancer, and you supply a NAT gateway if tasks need the internet. The default VPC needs at least two public subnets in two zones.
ECS Express Mode pricing: what you actually pay
| Item (US East, N. Virginia, 730 hours) | Rate | Per month |
|---|---|---|
| Fargate task, 1 vCPU + 2 GB, x86 (default) | $0.04048 per vCPU-hour + $0.004445 per GB-hour | $36.04 |
| Same task on ARM64 (Graviton) | $0.03238 per vCPU-hour + $0.00356 per GB-hour | $28.84 |
| Application Load Balancer | $0.0225 per hour | $16.43 (shared by up to 25 services) |
| Load balancer capacity (LCU) | $0.008 per LCU-hour | Depends on traffic |
| Public IPv4 addresses | $0.005 per hour each | $3.65 each (2 for the ALB across two zones, 1 per task in public subnets) |
| CloudWatch logs, metrics, data transfer | Standard rates | Depends on usage |
So one default service costs about $63.42 a month before traffic ($36.04 + $16.43 + 3 × $3.65). A second service in the same VPC adds about $39.69 (its task and public IP), because it shares the load balancer. Switching to ARM64 saves about $7.20 per task each month if your image supports it. Rates are on-demand, as of December 3, 2026. Unused public IPs and idle load balancers are a classic leak; see unattached IPs and load balancers.
Jake: "Sixty-three dollars for a booking page?"
Ethan: "For an always-on, auto-scaling, HTTPS one, yes. ARM64 brings it nearer $56, and the next app we add costs much less."
Moving from AWS App Runner to Express Mode
App Runner is closed to new customers. Existing customers can keep running and even create new App Runner services, and it still gets security and availability work, but no new features are planned. The official migration path is a side-by-side move with gradual DNS shifting:
- Note your App Runner settings: image, port, environment variables, CPU, memory, scaling and custom domain.
- Create an Express Mode service from the same container image. Deploying from source code? Add a build step that pushes an image to Amazon ECR first.
- Attach your custom domain: request a public ACM certificate in the same Region, add it to the load balancer’s HTTPS listener, and add the domain as a host header condition on the service’s listener rule.
- Shift traffic with Route 53 weighted records: App Runner at 100, Express Mode at 0, then move the weights step by step while you watch errors.
- Delete the App Runner service once all traffic is on Express Mode.
Only using the default App Runner URL (no custom domain)? There’s no shared hostname to shift, so test the new URL, then update clients or DNS in one go.
Express Mode vs App Runner vs Fargate vs Elastic Beanstalk
| ECS Express Mode | App Runner | ECS on Fargate (manual) | Elastic Beanstalk | |
|---|---|---|---|---|
| Open to new customers | Yes | No (existing only) | Yes | Yes |
| Input | Container image | Image or source code | Image + your own setup | App code or container |
| Load balancer and HTTPS | Created for you | Built in | You create them | Created for you |
| Who manages the infrastructure | ECS, in your account, all visible | App Runner | You | Elastic Beanstalk, in your account |
| Extra charge | None | App Runner pricing | None | None |
| Best for | New container web apps and APIs | Existing App Runner apps | Full control | Code-first apps on EC2 |
Running many services across teams? ECS Gateway shares one load balancer under organization-wide rules. Prefer code over containers? See Elastic Beanstalk.
Common mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Running the create command right after making roles | “Unable to assume the service linked role” | Wait about a minute and retry |
| App listens on 8080 but no containerPort set | Health checks fail on port 80 | Pass containerPort in --primary-container |
| No / route in the app | Targets marked unhealthy | Set --health-check-path to a path that returns 200 |
| First service in a VPC uses one zone’s subnets | Later services are limited to that zone | Give the first service subnets in every zone |
| Renaming the Main container | Express Mode can’t update the service | Keep the name Main |
| Forgetting test services | Each one bills around the clock | delete-express-gateway-service when done |
How Ethan launched the booking page
- He pushed the booking app’s image to Amazon ECR and created the two IAM roles.
- He ran
create-express-gateway-servicewithcontainerPort 8080,--health-check-path /healthand ARM64. - A few minutes later the page answered on its
.ecs.us-east-1.on.awsURL over HTTPS. - He added the shop’s own domain with an ACM certificate and a host header rule, then pointed DNS at it.
- He set a budget alert, because an always-on service bills even when nobody books.
Jake: "Online before lunch on Thursday?"
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Developer – Associate (DVA-C03 from December 1, 2026) • Solutions Architect – Associate (SAA-C03) • Cloud Practitioner.
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. A developer wants to deploy a containerized web API with HTTPS, auto scaling and a public URL using the fewest configuration steps on Amazon ECS. What should they use?
Amazon ECS Express Mode (create-express-gateway-service), which needs only a container image, a task execution role and an infrastructure role and creates the Fargate service, ALB, scaling and networking.
2. A new AWS customer wants to use AWS App Runner for a container web app. What is the recommended alternative?
App Runner is closed to new customers; Amazon ECS Express Mode is the recommended replacement.
3. Is there an additional charge for ECS Express Mode?
No. You pay only for the resources it creates: Fargate compute, the Application Load Balancer, CloudWatch logs and metrics, public IPv4 addresses and data transfer.
4. How many Express Mode services in the same VPC can share one Application Load Balancer?
Up to 25; Express Mode adds more load balancers as needed and removes unused ones.
5. How can traffic be moved gradually from an App Runner service with a custom domain to ECS Express Mode?
Run both side by side, attach the domain and ACM certificate to the Express Mode load balancer, and shift traffic with Route 53 weighted records before deleting the App Runner service.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
Ethan: "Before lunch, with HTTPS and scaling. The load balancer will host our next app for free too."
ECS Express Mode documentation and official references
- Amazon ECS Express Mode: what it is, pricing and availability.
- Resources created by Express Mode services: every default.
- Create your first Express Mode service with the AWS CLI: step by step.
- AWS App Runner availability change: status and the migration walkthrough.
Frequently asked questions
What is Amazon ECS Express Mode?
A simplified way to run a containerized web app or API on Amazon ECS. You give it a container image and two IAM roles; it creates a Fargate service, an HTTPS Application Load Balancer, auto scaling, logs, security groups and a public URL in your AWS account.
How much does ECS Express Mode cost?
Express Mode itself is free. You pay for what it creates. A default service (one task with 1 vCPU and 2 GB, x86) in US East (N. Virginia) comes to about $63 a month before traffic: $36.04 Fargate, $16.43 load balancer and $10.95 for three public IPv4 addresses, plus load balancer capacity units, logs and data transfer.
Is AWS App Runner deprecated?
App Runner is closed to new customers. Existing customers can keep using it as normal, including creating new services, and it still gets security and availability work, but no new features are planned. ECS Express Mode is the official replacement.
What should I use instead of AWS App Runner?
Amazon ECS Express Mode, the official replacement: the same container-image-to-URL simplicity, running on ECS and Fargate in your own account.
ECS Express Mode vs Fargate: what is the difference?
Express Mode runs on Fargate. Fargate is the serverless compute; Express Mode is the one-command setup that also creates the load balancer, HTTPS, scaling, logging and networking around it.
ECS Express Mode vs App Runner: what changes?
Express Mode creates real, visible resources in your account (an ECS service, an ALB, security groups), so you can tune them later. It needs a container image; App Runner could also build from source code.
ECS Express Mode vs Elastic Beanstalk: which should I use?
For a containerized web app or API, Express Mode is the simpler, container-first choice. Elastic Beanstalk still suits teams deploying application code onto managed EC2 platforms.
How do I deploy with ECS Express Mode?
Create the task execution role and infrastructure role, then run aws ecs create-express-gateway-service with --primary-container image=YOUR_IMAGE, both role ARNs and --monitor-resources. You get a URL like servicename.ecs.region.on.aws.
Can I use a custom domain with ECS Express Mode?
Yes. Request a public ACM certificate for the domain in the same Region, add it to the load balancer’s HTTPS listener, add the domain as a host header condition on the service’s listener rule, and point DNS at it.
Does ECS Express Mode support Terraform and CloudFormation?
Yes. You can create and manage Express Mode services with the console, AWS CLI, SDKs, CloudFormation and Terraform.
Can ECS Express Mode scale to zero?
Not by default: the minimum is 1 task, so one task always runs and bills. Auto scaling then adds tasks (up to 20 by default) to keep CPU near 60%.
Can several Express Mode services share one load balancer?
Yes. Up to 25 Express Mode services in the same VPC share one Application Load Balancer; Express Mode adds more load balancers when needed and removes unused ones.
What health check does ECS Express Mode use?
The load balancer checks the path "/" on port 80 by default. Change it with --health-check-path if your app answers somewhere else, such as /health.
Can I use my own task definition with Express Mode?
Yes, with --task-definition-arn. It must have a container named Main with one named TCP port mapping and be Fargate-compatible; you then can’t also pass the primary container, roles, CPU or memory in the same call.
Why does create-express-gateway-service fail with “Unable to assume the service linked role”?
Newly created IAM roles take a short time to work everywhere. Wait about a minute and run the command again.
Can I deploy from source code with Express Mode?
No, it deploys container images. If you deployed App Runner from source, add a build step that builds an image and pushes it to Amazon ECR first.
Revision note. Written December 3, 2026, during AWS re:Invent week, with US East on-demand rates from that day. Check the live Express Mode defaults before relying on them. “Well begun is half done”: a good default setup saves a week of plumbing.