Amazon ECS Gateway Simplifies Ingress Networking for Containerized Workloads
When platform teams manage containerized applications at scale on Amazon Elastic Container Service, configuring ingress networking for each service often becomes a bottleneck. For every new service, teams must provision and connect Application Load Balancers, AWS Certificate Manager certificates, AWS WAF web ACLs, and security groups, then keep those resources in sync as services scale, update, or operate. This per-service overhead slows deployment velocity and increases the risk of configuration drift across an organization.
Today, AWS announces Amazon ECS Gateway, a new account-level resource that simplifies ingress networking for containerized workloads by dynamically provisioning and managing the necessary infrastructure on behalf of customers, with all resources created directly in the customer account. ECS Gateway introduces a clear separation of responsibilities between platform teams and application teams. Platform teams create and configure a gateway, defining organizational networking standards including subnets, security groups, TLS certificates, listener settings, and WAF web ACLs in a single place, then associate the gateway with one or more ECS clusters.
Application teams opt their services in by adding a gateway connector parameter when creating or updating a service. ECS provisions the required per-service resources automatically: an ACM certificate, a unique DNS hostname, listener rules, target groups, and a service security group that permits inbound traffic only from the ALB. No networking expertise is required. ECS Gateway offers host-based routing using ALBs and enables up to 25 services to share a single ALB, optimizing infrastructure costs.
ECS manages the full lifecycle of the underlying infrastructure, provisioning the first ALB when the first service connects, adding more ALBs as capacity is reached, and removing them when no longer needed. Each service receives a unique DNS hostname, giving teams a ready-to-use endpoint the moment provisioning completes. In the ECS console, platform teams can create a gateway and set its configuration. The infrastructure role is an IAM role that ECS assumes to provision and manage networking resources such as ALBs, security groups, and certificates in the customer account.
To create a gateway, provide a gateway name and select an infrastructure role. Optionally associate the gateway with ECS clusters during creation or later. Choose a load balancing scheme, either public or VPC-internal traffic routing. Under Additional Settings, set up a listener, port, maximum count of load balancers the gateway can scale to, and a web ACL to protect web applications. Some settings, including the name, scheme, VPC, subnets, IP address type, listener protocol and port, cannot be changed after gateway creation. Using the AWS CLI, call CreateGateway with a name unique per account, an infrastructure role, and a configuration object. No infrastructure is provisioned until a service connects with a gateway connector.
Once the gateway is created, customers can view detailed configuration, gateway routes, load balancers, and associated clusters. Associate the gateway with one or more clusters in a many-to-many relationship to make it available to ECS services on those clusters. A gateway can be associated with up to 10,000 clusters, and a single cluster supports up to five gateway associations. Amazon ECS Gateway is available now in all commercial AWS Regions where ECS is available at no additional charge. Customers pay only for the underlying infrastructure provisioned in their account when services connect to a gateway, including applicable ALB charges, CloudWatch logs and metrics, ACM certificates, and data transfer charges.
Source credits
By Channy Yun (윤석찬) from AWS News Blog. Edited by SetuGeo.