Deployment Overview
Deployment Flow
Section titled “Deployment Flow”Deploying the ECS Express Mode demo is a two-command workflow: terraform init to initialize the working directory and download providers, then terraform apply to provision the entire stack. 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. resource handles most of the infrastructure wiring automatically.
What Gets Provisioned
Section titled “What Gets Provisioned”When terraform apply completes, Express Mode creates and configures the following resources on your behalf:
| Resource | Provisioned By | Purpose |
|---|---|---|
| Express Mode | Receives HTTPS traffic and routes to tasks via Host header rules | |
| Target Group | Express Mode | Health checks and load distribution across running tasks |
| Auto Scaling | Express Mode | Scales tasks between min and max count based on the configured metric |
| Application URL The unique Express-provisioned HTTPS URL on *.ecs.<region>.on.aws used for all normal application traffic. | Express Mode | Unique HTTPS endpoint on |
| RollbackAlarm A CloudWatch metric alarm created by Express Mode that triggers automatic deployment rollback when new tasks fail ALB health checks. | Express Mode | CloudWatch alarm that triggers automatic rollback on failed deployments |
VPC | Your Terraform code | Network foundation with public subnets, internet gateway, and route table |
| IAM Roles | Your Terraform code | Task execution, infrastructure, and task roles with least-privilege policies |
| ECS Cluster | Your Terraform code | Logical grouping for the Express service |
Verifying the Deployment
Section titled “Verifying the Deployment”After terraform apply succeeds, verify the deployment is healthy by checking three things:
- Terraform outputs — retrieve the Application URL
The unique Express-provisioned HTTPS URL on *.ecs.<region>.on.aws used for all normal application traffic. and ALB DNS name fromterraform output - Service status — confirm desired count equals running count in the ECS console or via
aws ecs describe-services - Health endpoint — curl the health check path and confirm an HTTP 200 response
Next Steps
Section titled “Next Steps”The following pages cover each phase in detail:
- Terraform Apply — step-by-step init and apply instructions
- Verifying the Service — confirming tasks, health checks, and endpoints
- Accessing the Web UI — Swagger UI and Bedrock image analysis flow