ECS Flashcards
Task definitions are metadata in ___ form
JSON
The EC2 instances run a special ___ made specifically for ECS
AMI
Private Docker Image Repository
ECR
${aws ecr get-login –no-include-email –region eu-west-1)
AWS CLI v1 login command
aws ecr get-login-password –region eu-west-1 | docker login –username AWS –password-stdin 1234.dkr.ecr.eu-west-1.amazonaws.com
AWS CLI v2 login command
Used by the ECS agent, make API calls to ECS service, send container logs to CW logs
EC2 Instance Profile
Allow each task to have a specific role, defined in the task definition
ECS Task Role
Task Placement - Place tasks based on the least available amount of CPU or memory
Binpack
Task Placement - Place the task randomly
Random
Task Placement - Place the task evenly based on the specified value
Spread
Task Placement Constraint - Place each task on a different container instance
DistinctInstance
Task Placement Constraint - Place task on instances that satisfy an expression. Uses Cluster Query Language
memberOf
Auto Scaling - Target a specific average CloudWatch metric
Target Tracking
Auto Scaling - Scale based on CloudWatch alarms
Step Scaling
Auto Scaling - Based on predictable changes
Scheduled Scaling