Ravi Sir's Cards › AWS
What is Amazon ECS?
This revision card explains What is Amazon ECS? It starts from the need that flipkart sale traffic needs many identical app boxes, not one fat EC2 that is hard to replace. It describes amazon ECS (Elastic Container Service) starts, stops and restarts Docker containers on AWS. Fargate is the launch type where you do not manage EC2 hosts. The how-to section notes define a task definition (image, CPU, memory, ports), put a service in a cluster, set desired count. An example on the card is A Fargate service with desired count 2 keeps two nginx tasks healthy behind a public IP or ALB.
Read card text
What this card says
Why do we need it?
Flipkart sale traffic needs many identical app boxes, not one fat EC2 that is hard to replace.
What is it?
Amazon ECS (Elastic Container Service) starts, stops and restarts Docker containers on AWS. Fargate is the launch type where you do not manage EC2 hosts.
ECS + Fargate
How to do it
Define a task definition (image, CPU, memory, ports), put a service in a cluster, set desired count.
Example
A Fargate service with desired count 2 keeps two nginx tasks healthy behind a public IP or ALB.