ECS and Fargate Cheat Sheet

  • Elastic Container Service (ECS) is a fully-managed container orchestration service. Highly secure, reliable and scalable way to run containers
  • Components of EC2
    • Cluster Multiple EC2 instances which will house the docker containers.
    • Task Definition A JSON file that defines the configuration of (upto 10) containers you want to run
    • Task Launches containers defined in the Task Definition. Tasks do not remain running once workload is complete
    • Service Ensures tasks remain running (e.g. web app)
    • Container Agent Binary on each EC2 instance which monitors, starts and stops tasks

Elastic Container Registry (ECR) A fully-manged Docker container registry that makes it easy for developers to store, manage and deploy Docker container images.


  • Fargate is Serverless containers. Don’t worry about servers. Run containers, and pay based on duration and consumption
    • Fargate has Cold Starts, if this is an issue use ECS
    • Duration As long as you want
    • Memory Upto 30GB
    • Pricing Pay at least 1 minute and every additional second

[[ECS_&_Fargate_Cheatsheet]]