Cloud Intermediate
AWS ECS — Container Orchestration¶
AWSECSFargateContainers 5 min read
Elastic Container Service. Task definitions, services, Fargate vs EC2, service discovery.
ECS vs EKS¶
- ECS — AWS-native, simpler, tight AWS integration
- EKS — managed Kubernetes, portable, larger ecosystem
- Fargate — serverless compute, no node management
Task Definition¶
{
"family": "my-api",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "512", "memory": "1024",
"containerDefinitions": [{
"name": "api",
"image": "123456789.dkr.ecr.eu-west-1.amazonaws.com/my-api:latest",
"portMappings": [{"containerPort": 8080}],
"logConfiguration": {
"logDriver": "awslogs",
"options": {"awslogs-group":"/ecs/my-api","awslogs-region":"eu-west-1"}
}
}]
}
Service Discovery¶
ECS Service Connect or Cloud Map for service-to-service communication.
Summary¶
ECS + Fargate is the simplest path to containers on AWS. For the K8s ecosystem, choose EKS.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.