[Report] I Learned How to Centrally Manage Ingress for Container Applications with Amazon ECS Gateway #AWSreInvent #CON207

[Report] I Learned How to Centrally Manage Ingress for Container Applications with Amazon ECS Gateway #AWSreInvent #CON207

A report on AWS re:Invent 2026 session CON207. Covers how Amazon ECS Gateway lets services inherit a platform team's ingress standard with one parameter, and how sharing an ALB changes costs.
2026.12.01

This page has been translated by machine translation. View original

Introduction

Hello everyone, this is Akaike.

I'm attending AWS re:Invent 2026, and I listened to the session "Amazon ECS Gateway: Managed ingress for containerized applications".

When exposing services on Amazon ECS, preparing an ALB, security groups, and certificates for each service is quietly a lot of work.
As the number of teams grows, configuration inconsistencies and ALB costs also start to become a concern...

This session explained a mechanism that uses Amazon ECS Gateway so that the platform team defines the ingress configuration just once and each service simply inherits it, so I've summarized the content.

Session Overview

Title

Amazon ECS Gateway: Managed ingress for containerized applications (CON207)

Abstract

Amazon ECS Gateway is a new account-level resource that simplifies ingress for containerized applications by provisioning and managing networking infrastructure in your account. In this lightning talk, learn how platform teams define organizational networking standards once on a gateway and associate it with one or more clusters, creating a centralized way to govern how traffic reaches ECS services. Service teams simply opt in and inherit those standards with no networking expertise required. We cover host-based routing with Application Load Balancers, how up to 25 services can share an ALB to optimize cost, and how ECS provisions, scales, and removes ALBs as services connect and disconnect. We close with gateway routes, ALB metrics, and service action logs that give you full visibility into every operation ECS performs on your behalf.

Amazon ECS Gateway is a new account-level resource that simplifies ingress for containerized applications by provisioning and managing networking infrastructure in your account. In this lightning talk, you will learn how platform teams define organizational networking standards on a gateway and associate it with one or more clusters, thereby centrally governing how traffic reaches ECS services. Service teams can opt in to and inherit these standards without needing networking expertise. We explain host-based routing using Application Load Balancers, how up to 25 services can share an ALB to optimize cost, and how ECS provisions, scales, and removes ALBs as services connect or disconnect. Finally, we introduce how gateway routes, ALB metrics, and service action logs give you complete visibility into every operation ECS performs on your behalf.

Speaker

  • Radhika Nayar (Sr. PMT, Amazon ECS, Amazon Web Services)

Session Information

  • Level: 200 - Intermediate
  • Session type: Lightning talk
  • Topics
    • Containers
    • Networking & Content Delivery
  • Related service: Amazon Elastic Container Service (Amazon ECS)

CON207_01

Session Content

Scale of Amazon ECS Usage

CON207_02

At the beginning of the session, figures showing the scale of Amazon ECS usage were introduced.

  • Amazon ECS customers launch about 4 billion tasks per week
  • More than 67% of new AWS container customers use Amazon ECS
  • More than 90% of new Amazon ECS customers run their workloads on AWS Fargate

From there, the talk moved into the main topic with the question, "How does traffic reach a service?"

What You Need to Expose a Service

CON207_03

The following resources are needed for a user's request to reach a service.

  • DNS name (to make it reachable)
  • ALB security group (to allow HTTPS)
  • Load balancer (to distribute traffic)
  • HTTPS listener (to accept requests)
  • Certificate (to encrypt communication)
  • Firewall (to filter attacks)
  • Target group (to check task health)
  • Service security group (to allow traffic to the service)

This was summarized as "there are eight decisions per service, and you build, secure, and operate all of them yourself."

Each Team Building Its Own Entry Point

CON207_04

As an example, an ECS cluster with four services—Storefront, Catalog, Cart, and Orders—was introduced.
Each service is owned by a different team, and each team has its own release schedule.

To expose services in this setup, each team would prepare those eight resources in front of its own service.
That's 4 services × 8 resources, meaning 32 resources that must be built, secured, and kept consistent.

Problems That Arise in This State

CON207_05

Three perspectives were given on the impact of building an entry point per service.

  • Effort: Every team needs networking expertise
  • Governance: Because each service is configured individually, configurations gradually drift from the standard
  • Cost: You pay for load balancers in proportion to the number of services

It's truly Ingress becomes a tax on every launch....
(Ingress becomes like a tax levied every time you release a service.)

Overview of Amazon ECS Gateway

CON207_06

This is where Amazon ECS Gateway comes in.
In the diagram above, the resources that the gateway creates and manages are shown in purple frames.

  • Clients resolve names with Amazon Route 53 and send requests over HTTPS
  • A shared Application Load Balancer receives requests on an HTTPS listener and routes them to each service according to the host name (storefront, catalog, etc.)
  • One certificate per service is created with AWS Certificate Manager
  • An AWS WAF web ACL is associated with the ALB
  • Listener rules, target groups, and security groups are created per service
  • Up to 25 services can share a single ALB, and beyond that the gateway adds another ALB

All gateway resources are created in your own AWS account.
The application-side services keep running in the cluster as they are, and can connect to the gateway.

Design Principles of the Gateway

CON207_07

The concept behind the gateway was explained with three phrases: "Define once. Opt in. Stay in control."

  • Define once: The platform team sets networking and security standards just once
  • Opt in: The application team gets a secure URL by adding just one parameter
  • Stay in control: The load balancer, certificates, and security groups exist in your own account

Division of Roles Between the Platform Team and the Application Team

CON207_08

Two personas appear in the gateway.
With roles appropriately divided like this, you reach a state of Platform team sets the standard. Every service inherits it.
(The platform team sets the standard, and every service inherits it.)

Platform Team

Creates the gateway just once.
The infrastructure role specified at creation is the role that ECS uses to manage resources such as load balancers on behalf of the platform team.

aws ecs create-gateway \
  --name store-gateway \
  --infrastructure-role-arn <role-arn> \
  --configuration '{"hostSharedAlb": {}}'

The standards decided on the gateway are the following three.

  • Network
    • Public or private
    • Subnets to use
  • Security
    • Who can access
    • AWS WAF
  • Operations
    • Access logs
    • Capacity
    • Test traffic

Application Team

Adds one field to each service's configuration to opt in per service.
The rest of the configuration is inherited from the gateway.

How a Service Finds the Gateway

CON207_09

The following three elements were introduced as what connects services and gateways.

  • association: Associates a gateway with a cluster
  • gateway connector: A single field configured on each service
  • gateway route: One is created per connection between a service and a gateway, and each has its own dedicated URL

The service-side configuration does not specify the gateway name.
ECS connects the service to all compatible gateways associated with the cluster.

Three Steps to Get a URL Issued

CON207_10

The flow until a URL is actually issued is completed with three API calls.

  1. Create the gateway (platform team): Set the standards just once with the create-gateway shown earlier
  2. Associate with the cluster (platform team): Services in the cluster can now use the gateway
aws ecs associate-gateway-with-cluster \
  --gateway store-gateway \
  --cluster store-cluster
  1. Opt in the service (application team): Add --gateway-connectors, and ECS builds the rest
aws ecs update-service \
  --cluster store-cluster \
  --service storefront \
  --gateway-connectors '[{"portName":"web"}]'

When you opt in, a gateway route is created for each connection.
A gateway route has a URL in the format https://<unique-id>.ecs.<region>.on.aws, and you can check the status and the service's resources per route.

Note that nothing is provisioned until the first service connects.
Therefore, the platform team can create the gateway before services are ready.

Resources Created by Amazon ECS

CON207_11

When using the gateway, the resources ECS creates are divided as follows.

Category Resources
Shared across services Load balancer security group, Application Load Balancer, HTTPS listener
Created per service DNS name, certificate, listener rule, target group, service security group

Demo

CON207_12

From here it was a demo in the Management Console.
"Gateways" has been added to the console's left menu with a "New" label.

The demo started from a retail store cluster with four services running and no load balancer in front.

  1. As the platform team, create a gateway. Specify the gateway name and infrastructure role, and choose "Internet-facing" for the scheme. The status becomes active right after creation, but nothing has been provisioned at this point
  2. Associate the cluster with the gateway
  3. As the application team, update the Storefront service to opt in to the gateway. It takes a few minutes because the load balancer and other resources are created
  4. Opt in the Cart and Orders services in the same way
  5. Opt in the Catalog service with changed default settings. Shorten the deregistration delay and specify a health check path. Because it reuses the already-created load balancer, the update finishes quickly

Checking with all URLs working, there was only one load balancer shared by the four services.
One listener rule and one certificate had been created per service.

Next, when a request was made with a SQL injection query attached to the URL, it went straight through.
Then, after adding an AWS WAF web ACL to the gateway, the same request was blocked even though nothing had been done on the application side.

Number of Services and Load Balancer Costs

CON207_13

CON207_14

A comparison was shown of how load balancer costs change with and without the gateway.
The slide was animated, and the numbers changed according to the number of connected services.

Connected services Without gateway With Amazon ECS Gateway
0 $0.00 (0 ALBs) $0.00 (0 ALBs)
50 $821.25/month (50 ALBs) $32.85/month (2 ALBs)

At 50 services, the difference is $788.40 per month.
Note that this estimate calculates the us-east-1 ALB price ($0.0225/hour) over 730 hours per month, and does not include LCU, data transfer, or public IPv4 charges.

Changing and Applying Gateway Settings

CON207_15

When you change the gateway's settings, the changes are applied to all load balancers the gateway manages.
Each service inherits the new standards without redeployment.

The settings that can be changed at any time after creation are as follows.

  • AWS WAF web ACL
  • Inbound security group
  • HTTP desync mitigation
  • Access logs
  • Load balancer limit
  • Deletion protection
  • Tag propagation
  • Test traffic rules

This lets you achieve Update the gateway once. It rolls out to every load balancer it manages.
(Update the gateway once, and it rolls out to every load balancer it manages.)

How the Gateway to Connect to Is Chosen

CON207_16

The application team does not choose which gateway to connect to.
ECS selects and connects to gateways that satisfy all of the following three conditions.

  • Access type
    • Must match the service's PUBLIC/PRIVATE filter
    • If no filter is set, both are eligible
  • VPC: Must be the same VPC as the service
  • Availability Zone
    • Must cover all AZs used by the service
    • Covering only some of them is not eligible

In the slide's example, the service uses us-west-2b and us-west-2c.
Because Gateway 2 does not cover us-west-2c, the service is connected only to Gateway 1.

If there is no compatible gateway at all, the request fails.

Visibility Into the Request Path

CON207_17

When ECS creates resources on your behalf, you naturally wonder whether you can check what was created and how it's running.
What you can check was organized along the request path.

Target What you can check How to check
Load balancer All load balancers and the routes that share them DescribeGatewayResources
Gateway route The service's URL and status DescribeServiceRevisions
Target group Per-service request count, 5XX, and response time CloudWatch TargetGroup dimension
Task Tasks passing health checks DescribeTargetHealth

Note that a gateway route status of ACTIVE means "built" and does not indicate that it is running normally.
The slide listed UnHealthyHostCount and 5XX as the metrics to watch to notice anomalies.

There are also the following mechanisms.

  • Access logs: All requests can be output to an S3 bucket per host name
  • Tags: All resources created by the gateway are tagged with AmazonECSManaged=true and aws:ecs:gateway-arn

Migrating From Existing Load Balancers

CON207_18

Even services that already have their own load balancer can migrate by adding the gateway alongside.

  1. Add a gateway connector to the service
  2. Verify operation with the new URL
  3. Move clients to the new URL at your own pace
  4. Delete your own load balancer

During migration, traffic can be handled by both the existing load balancer and the gateway route, and ECS does not modify the existing load balancer.

Future Roadmap for Amazon ECS Gateway

CON207_19

Finally, the future direction was introduced.

Item Description Status
Amazon ECS services Connect to host-based routing on a shared load balancer via a gateway connector Available
Express Mode services Enable Express Mode services to connect as well Planned
Custom domains Platform-managed domains and per-service custom domains Planned
Gateway action logs Every step ECS performed for the gateway, from the load balancer to the route Planned
Other ingress Other types of ingress Planned

Note that the roadmap items indicate direction and may be subject to change.

Conclusion

That was the report on the session "Amazon ECS Gateway: Managed ingress for containerized applications".
It was a 20-minute Lightning talk, but including the demo, it gave a full picture of how to use the gateway.

Personally, the following points were particularly impressive.

  • A design premised on sharing ALBs
    • One ALB is shared by up to 25 services, and ECS adds and removes ALBs as services increase or decrease
    • Compared to a setup with an ALB per service, the difference in cost is large
  • The application team's work is just one field
    • Because the application team no longer needs to own networking configuration, it seems even more effective for organizations with many teams
  • Changes to standards are applied without redeployment
    • It was easy to understand that simply adding an AWS WAF web ACL in the demo stopped the SQL injection request

If you operate a multi-service setup on ECS, you can try it while keeping your existing load balancers, so it seems good to start by validating with just one service.


AWS re:Invent 2026まとめ情報

クラスメソッドは2026/11/30〜12/4にラスベガスで開催されるAWSカンファレンスイベント「re:Invent」を今年も特集しました。ぜひ一度ご覧ください。 re:Invent 2026ポータルサイトを見るAWS re:Invent公式サイトはこちら

Share this article

AWSのお困り事はクラスメソッドへ