Elastic Container Service (ECS) / Fargate Flashcards
An ECS cluster is a collection of what?
EC2 Instances
Which format is used for ECS task definitions?
JSON
What can you configure when creating an ECS cluster?
- Networking only (Fargate)
- EC2 Linux + Networking
There are six elements in the answer
- Provisioning Model (On Demand / Spot)
- EC2 instance type (T2.micro…)
- Number of instances (1)
- EC2 Ami Id (Amazon Linux 2)
- Key pair (From a list)
- IAM Role
How many ‘essential’ containers must you specify as a minimum for an ECS task?
1
What are some common container definitions you might find in a task definition JSON file?
There are three elements
cpu
image
memory
What is the amount of usage time you will be billed for a Fargate task lasting a few seconds?
1 Minute
Which AWS service provides the cluster you use to run Fargate tasks on?
ECS
Which AWS service provides a shorter cold start time?
Fargate
Lambda
Fargate
What is the maximum duration for a Fargate task?
Unlimited
What is the maximum memory limit for a Fargate tasks?
30GB
What is Elastic Container Service (ECS)?
What are its 5 components?
- It’s a orchestration service
- Clusters (EC2 instances)
- Task Definition (JSON FILE)
- Task (Launches Containers)
- Service (Ensure tasks remaining running)
- Container Agent (Monitors, starts and stops tasks)
What is Fargate?
What are its 3 key features?
- It’s Serverless containers
- Duration (As long as you want)
- Memory (30 GB)
- Pricing (At least one minute)
What is Elastic Container Registry (ECR)?
-It’s a Docker container registry where you can store your container images