AWS - Elastic Container Service (ECS)



  • ECS allows you to manage Docker containers on a cluster of EC2 instances.
  • Containers are lightweight OS virtualizations that allow you to run applications and its dependencies in resource isolated processes.
  • Containers are created from read-only templates called images.
  • Images are stored in public or private registries like Docker Hub or AWS Elastic Container Registry (ECR).
  • A task definition is required to run Docker containers in AWS ECS
  • Task definitions are JSON files that describe one or more containers that are part of your application.
  • Task definitions contain configurations such as Image to use, CPU, RAM, launch type, logging, IAM roles etc.
  • ECS Service allows you to run and maintain a specified number of task instances in an ECS cluster.
  • Services work like Autoscaling groups in EC2.
  • ECS Cluster is a logical grouping of containers.
  • Clusters can contain multiple different container types.
  • Clusters are region specific.
  • Container instances can only be part of one cluster.
  • User access to clusters can be managed using IAM policies.
  • ECS can be scheduled in 2 ways:
    • Service Scheduler
    • Customer Scheduler
  • EC2 instances can connect to ECS cluster using linux-only ECS agent.
  • Security groups are applied at instance level, not at  the task or container level.


0 comments:

Post a Comment