Please enable JavaScript.
Coggle requires JavaScript to display documents.
18.202: AMZ ECS (Elastic Container Service) - Coggle Diagram
18.202: AMZ ECS (Elastic Container Service)
EC2 Launch type
Launch Docker on AWS = launch ECS task on ECS cluster
EC2 launch type: you must provision and maintain infrastructure
Each EC2 instance must run the ECS Agent to register in ECS Cluster
AWS take care of start/stop container
Farget launch type
Launch Docker on AWS
Do not provision the infrastructure
Serverless! Just create task definition
AWS run EC2 task base on CPU/RAM you need
To scale, increase number of task. Simple, no EC2 instance
IAM Role for ECS
EC2 Instance Profile
Used by ECS agent
Make API call to ECS services
Send container log to CloudWatch log
Pull Docker from ECS
Refer sensitive data in Secret Manager or SSM parameter store
ECS task role
Allow each task to have specific role
Use different role for different services you run
Task Role is defined in
task definitio
n
Load balancer integration
App Load Balancer support and work for most use case
Network Load balancer for high throughput, high performance
Classic Load balancer support but not recommend
Data Volumes (EFS)
Mount EFS file system onto ECS task
Work for both EC2 and Fargate launch type
Task running in any AZ will share same data in EFS file system
Fargate + EFS = Serverless
Usecase: persistent multi AZ shared storage for your containers
AMZ S3 cannot be mount as file system