A fully managed container orchestration service.

There are three layers in Amazon ECS:

  • Capacity - The infrastructure where your containers run (EC2, Fargate, On-prem).
  • Controller - Deploy and manage your applications that run on the containers.
  • Provisioning - The tools that you can use to interface with the scheduler to deploy and manage your applications and containers.

Concepts

  • Cluster
  • Task
  • Task Definition
  • Service

q Can Service/cluster scale to 0?

If you want your task count to scale to zero when there’s no work to be done, set a minimum capacity of 0. With target tracking scaling policies, when actual capacity is 0 and the metric indicates that there is workload demand, Service Auto Scaling waits for one data point to be sent before scaling out. In this case, it scales out by the minimum possible amount as a starting point and then resumes scaling based on the actual running task count.

AWS ECS auto scaling AWS ECS metadata

References