Skip to content

Limitations

Several configuration fields in the Express Gateway Service
The aws_ecs_express_gateway_service Terraform resource that provisions an ECS service with managed ALB, auto scaling, and simplified configuration for HTTP/HTTPS web applications and APIs.
are set once at creation time and cannot be modified afterward. Changing any of these requires destroying the service and recreating it from scratch.

FieldDescriptionImpact of Change
service_nameThe name identifying your ECS serviceService replacement required
clusterThe ECS cluster hosting the serviceService replacement required
infrastructure_role_arn

The Infrastructure Role
An IAM role assumed by ecs.amazonaws.com that grants ECS Express Mode permissions to provision ALB, networking, and auto scaling resources.
ARN granting Express Mode permissions

Service replacement required
Deployment strategyRolling update configuration (Express Mode default)Service replacement required
Load balancer config

The Shared ALB
The Application Load Balancer shared by up to 25 Express services in the same VPC using Host header routing rules.
target group and listener settings

Service replacement required

In Terraform, attempting to change any of these fields triggers a forces replacement plan — the existing service is destroyed and a new one is created. This causes downtime because the ALB target group and DNS routing are rebuilt.

Express Mode uses a single subnet list for both the managed ALB and your tasks. Unlike classic ECS where you can place the ALB in public subnets and run tasks in private subnets, Express Mode does not support this split configuration.

The subnet type you choose determines the ALB type and accessibility:

Subnet TypeALB ResultTask IPsAccessible From

Public Subnet
A subnet with a route to an Internet Gateway, enabling resources to have public IP addresses and internet access.
(route to IGW)

Internet-facing ALBPublic IPs assignedThe public internet
Private subnets (no IGW route)Internal ALBPrivate IPs only

Within the VPC
Virtual Private Cloud — an isolated virtual network within AWS where resources are deployed.
only

The first Express Gateway Service
The aws_ecs_express_gateway_service Terraform resource that provisions an ECS service with managed ALB, auto scaling, and simplified configuration for HTTP/HTTPS web applications and APIs.
deployed in a VPC
Virtual Private Cloud — an isolated virtual network within AWS where resources are deployed.
determines whether the Shared ALB
The Application Load Balancer shared by up to 25 Express services in the same VPC using Host header routing rules.
is internet-facing or internal. All subsequent Express services in that same VPC share this ALB and inherit its type.

This means:

  • If your first Express service uses public subnets, the Shared ALB becomes internet-facing — all future Express services in that VPC will also be internet-facing.
  • If your first Express service uses private subnets, the Shared ALB becomes internal — all future Express services in that VPC will only be reachable within the VPC.

To change the Shared ALB type, you must remove all Express services in the VPC and redeploy the first one with the desired subnet type.

PLACEHOLDER: ECS console Express Mode sidebar (create-only wizard)