3. What is EC2 Container Service (ECS) ?
Anything you can run on EC2 instance can run on
Container in ECS
Supports Docker Containers
Easily run applications on a managed cluster of EC2
instances
Start, Stop, Delete containers
17. SET UP AN EC2 CONTAINER INSTANCE WITH THE CONTAINER AGENT INSTALLED AND ADD IT TO THE
CLUSTER
Choose AMI
Choose Instance Type
Con gure Instance
Add Storage
Tag Instance
Con gure Security Group
Review
19. Check whether our EC2 container instance is displaying our
website which we con gured as part of the task de nition
20. Amazon EC2 Container Registry (ECR)
Stores and Manages Docker Images - Source control like
tool for images
No upfront fee, pay only for the data stored
22. CONFIGURATION WITH THE CLI
Be a fully managed service with no software to install or
infrastructure to scale.
Integrate with AWS Identity and Access Management
(IAM) to simplify authorization and to provide ne-grained
control.
Transfer container images to and from Amazon EC2
Container Registry via HTTPS.
Support Docker Registry HTTP API V2 allowing you to use
Docker CLI commands or other Docker tools.
Integrate with third-party developer tools through
partners including CloudBees, Codeship, CoreOS,
Mesosphere, Shippable and others.
23. How to Push to and Pull from Amazon EC2 Container
Registry (ECR)
31. ECS is monitoring status of Docker containers, so if it goes
down it will be deployed automatically
32. ASG is monitoring your EC2 instances, if one instance goes
down, it will spawn new instance
33. ECS can do zero-downtime deployments of new version (Blue
- Green deployments)
Blue - Green deployments means create new
set of containers, which is next version of your
application and bring down previous version
of container then switch over traf c.
34. Updation requires two things
Create new revision of task
Update the revision in the service
35. LIMITS
Number of clusters per region, per account 1000
Number of container instances per cluster 1000
Number of services per cluster 500
36. LIMITS CONT.
Number of load balancers per service 1
Number of tasks per service (the desired count) 1000
Number of tasks launched (count) per run- task 10
Number of container instances per start- task 10
Throttle on container instance registration rate 1 per
second / 60 max per minute
Task de nition size limit 32 KiB
Task de nition max containers 10
Throttle on task de nition registration rate 1 per second /
60 max per minute