Using Amazon ECS to Run and Manage Containers at Scale
Amazon ECS is a fully managed container orchestration service that enables you to run and manage Docker containers on a cluster of Amazon EC2 instances that you manage or on AWS Fargate, which is the serverless alternative where AWS manages all the underlying infrastructure. With ECS, you can launch and stop container-based applications with simple API calls, query the complete state of your cluster, and access many familiar features such as security groups, Elastic Load Balancing, EBS volumes, and IAM roles.
The architecture of Amazon ECS is designed to provide flexibility and control over how applications run. It comprises several components that enable you to create and manage your containers, incorporating storage and networking features and traffic distribution via load balancers. These components are depicted in Figure 11.2 and discussed next.
Figure 11. 2 – Amazon ECS components
The...