サービス · コンテナ
Amazon Elastic Container Service (Amazon ECS)
AWS’s own service for running, managing and scaling containers.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1You write a task definition: the image, the CPU and the memory.
- 2ECS pulls the image from Amazon ECR.
- 3ECS runs the tasks on Fargate or on EC2 instances, and keeps the number you asked for.
Orchestration
- ECS
- Built by AWS, for AWS
- EKS
- Open-source Kubernetes, run by AWS
Choose it when
- ECS
- You want an AWS-native option with less to operate
- EKS
- You already use Kubernetes, or want the same tools in other clouds and on-premises
Runs containers on
| 比較項目 | ECS | EKS |
|---|---|---|
| Orchestration | Built by AWS, for AWS | Open-source Kubernetes, run by AWS |
| Choose it when | You want an AWS-native option with less to operate | You already use Kubernetes, or want the same tools in other clouds and on-premises |
| Runs containers on |
概要
Amazon Elastic Container Service (Amazon ECS) is a fully managed container orchestration service. You tell it which containers to run and how many, and it starts them, keeps them running and scales them. There is no control plane, the software that schedules and tracks the containers, for you to install or operate.
A task definition is the blueprint: which image to use, and how much CPU and memory to give it. A task is a running copy of that blueprint. A service keeps a set number of tasks running, replaces any that stop, and can sit behind a load balancer.
概要
Tasks run on AWS Fargate, with no servers to manage, or on Amazon EC2 instances. You can manage those instances yourself, or let AWS manage them with Amazon ECS Managed Instances. ECS works closely with other AWS services, such as Amazon Elastic Container Registry (Amazon ECR) for images and Elastic Load Balancing for traffic.
覚えること
- Fully managed: no control plane to run.
- Task definition = blueprint. Task = running copy. Service = keeps tasks running.
- Runs tasks on Fargate (serverless) or on EC2 instances.
- No extra charge for ECS orchestration. You pay for the compute and other resources you use.
覚えること
- Choose ECS for an AWS-native way to run containers, without Kubernetes.
試験では
- “Run and scale Docker containers on AWS” points to Amazon ECS.
- “Orchestrate containers with Kubernetes” points to Amazon EKS instead.
混同しやすいもの
Amazon Elastic Kubernetes Service (Amazon EKS)Runs Kubernetes on AWS, with the control plane managed for you.
AWS FargateServerless compute for containers: no servers or clusters of instances to manage.
Amazon Elastic Container Registry (Amazon ECR)A managed registry where you store, scan and share container images.