ECS, ECR, Docker Flashcards
1
Q
vm vs docker
A
- vm - virtualized hardware, uses hypervisor
- docker - lightweight containers run using docker daemon
2
Q
ECS - elastic container service
A
- task = pod - launches containers (up to 10 per task definition)
- task definition - metadata in json form to tell ecs how to run container
- image name, ports, memory, env variables, IAM role, etc.
- Secrets - use SSM parameter store or Secrets manager
- image name, ports, memory, env variables, IAM role, etc.
- shared storage (bind mounts) - per task, works with ec2 and fargate
- use for ephemeral data between multiple containers, and sidecar containers for metrics, etc.
- task definition - metadata in json form to tell ecs how to run container
3
Q
IAM task roles
A
- specific roles for each tasks
- task role defined in task definition
4
Q
data volumes (EFS)
A
- works with both ec2 and fargate launch types
- S3 CANNOT be mounted for ECS tasks
5
Q
Terminate an instance in stopped state leads to
A
Synchronization issues. Container instance isn’t automatically removed from the cluster