Ref: https://learn.cantrill.io/courses/1820301/lectures/41301614


Amazon ECS - EC2 Mode

Diagram: https://github.com/acantril/aws-sa-associate-saac03/blob/main/1000-CONTAINERS_and_ECS/00_LEARNINGAIDS/ECS-ClusterMode-1.png


Amazon ECS - Fargate Mode

Diagram: https://github.com/acantril/aws-sa-associate-saac03/blob/main/1000-CONTAINERS_and_ECS/00_LEARNINGAIDS/ECS-ClusterMode-2.png


ECS Cluster Modes - Summary Table

ECS Cluster Mode Container host location Container host management Billing
EC2 EC2 instances Customer Pay for whole instances (regardless of container usage)
Fargate AWS Fargate shared infrastructure AWS (Fargate service) Pay based on resources consumed by running tasks

Deciding Between EC2, ECS-EC2 and ECS-Fargate