Skip to main content
The Express Service module deploys an aws_ecs_express_gateway_service resource — a simplified ECS deployment that automatically provisions a public URL for the service without requiring a load balancer.

What is created

  • ECS Express Gateway Service with a public *.ecs.{region}.on.aws URL
  • IAM roles: execution role, task role, infrastructure role
  • Security group
  • CloudWatch log group
  • VPC with private/public subnets
The Express Service module does not require an ECS cluster or load balancer. It is designed for simplified deployments where you want ECS to manage the full service lifecycle and endpoint.

Code

main.tf

Service URL output

After apply, retrieve the public service URL:
outputs.tf

Key highlights

  • No cluster or ALB required: Express Service automatically provisions a public endpoint.
  • Random name suffix: ECS holds service names indefinitely after deletion. The random suffix prevents naming conflicts when recreating the service during development.
  • scaling_target: Built-in CPU or memory-based autoscaling without configuring Application Auto Scaling separately.
  • primary_container: A simplified container config — no need to write a full container definition block.

Express Service Inputs

Full reference for all Express Service parameters.

Service Module

Full-featured service module for more complex deployments.