ECR Flashcards
Difference between S3 Pre-signed url and Cloudfront signed url
Signed url allows access to a path, no matter the origin. S3 presigned url assumes the role of the person issuing it directly to the s3 without using Cloudfront, if there’s an oia use cloudfront signed url.
ECS is used to ____ and has ______
run Docker containers and has 3 flavors: Classic = provision ec2 instances to run containers onto (you manage your infrastructure), Fargate: ECS Serverless, no more Ec2 to provision, EKS: Managed Kubernettes byAWS
AWS CLI login command for ecr
aws ecr get-login –no-iclude email –region eu-west-1
if an ec2 instance cannot pull a docker image..
check iam roles
What role do you use for your tasks in ec2
IAM taskroles.
What are the task placement strategies?
Binpack (all tasks on one ec2 instance), random, spread (across AZ zones)
Difference between ECS service auto scaling and Ec2 auto scaling
ECS service scaling occurs on the task level, Ec2 autoscaling occurs on the instance level
ECS Cluster Capacity Provider
Capacity Provider is used in association with a cluster to determine the infrastructure that a task runs on. For ECS and Fargate users, FARGATE and FARGATE_SPOT capacity providers are added automatically.
For ECS on Ec2, you need to associate the capacity provider with an autoscaling group.
What is a task definition?
Blueprint for how docker containers should be launched.
What is a task?
A running container, think as an “instance
What is a service?
Defines long running tasks of the same task definition.
What is a cluster?
A logic group of Ec2 instances. When an instance launches the ecs-agent the isntance becomes registered to the cluster
How to enable multiple containers of the same type to launch on the same instance?
Set host port = 0
Do security groups matter when an instance registers with an ecs service?
No.