Containers
Amazon ECS
Run containers on EC2 or Fargate, fully managed.
Official docsOverview
Elastic Container Service orchestrates Docker containers as Tasks and Services with deep AWS integration (ALB, IAM, CloudWatch, VPC).
When to use it
- Containerized apps without Kubernetes complexity
- Mix of long-running services and scheduled tasks
- Serverless containers via Fargate
Setup
- Create a cluster (Fargate is simplest).
- Define a Task Definition (image, CPU/mem, env, IAM role).
- Create a Service with desired count, ALB target group and auto-scaling.
How to use
Run a one-off Fargate task
aws ecs run-task --cluster qa --launch-type FARGATE --task-definition tests:3 --network-configuration '...'QA use cases
- Spin up ephemeral Fargate tasks per PR to run integration tests then terminate.
- Schedule containerized Selenium grids using ECS Scheduled Tasks.
