Week#10(ECS)
Week#10(ECS)
Yin Hua Li
Centennial College
1
¡ Amazon provides a set of container services
§ Amazon Elastic Container Registry
§ Amazon Elastic Container Service
§ Amazon Elastic Kubernetes Service
2
¡ Install AWS CLI
3
¡ ECR is a fully managed container registry that makes it easy for
developers to store, manage and deploy container images and
artifacts anywhere
§ An alternative for Docker Hub (hub.docker.com)
§ A part of AWS ecosystem, and integrates well with other AWS services
From: aws.amazon.com
4
¡ ECS is a fully managed container orchestration service that helps you
easily deploy, manage, and scale containerized applications
¡ There are three layers in Amazon ECS
• Capacity - The infrastructure where your containers run
• Controller - Deploy and manage your applications that run on the containers
• Provisioning - The tools that you can use to interface with the scheduler to
deploy and manage your applications and containers
5
¡ AWS Fargate delegate infrastructure management to AWS, and it automatically
launches containters
Source: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html 6
¡ ECS components
§ ECS Cluster
▪ Contains services to manage containers
§ Task
▪ Instantiation of a task definition within a cluster
§ Scheduler
▪ Places tasks on your cluster
§ Service
▪ Runs and maintain a specified number of instances of a task
definition simultaneously
§ Container agent
▪ Runs on each compute node within an ECS cluster 7
¡ An Amazon ECS cluster is a logical grouping of
tasks or services
¡ Tasks and services are run on infrastructure that is
registered to a cluster
8
¡ A task definition is a blueprint for your application. It is a text file in JSON format that
describes the parameters and one or more containers that form your application.
9
Source: https://docs.aws.amazon.com/AmazonECS/latest/userguide/fargate-task-defs.html
¡ Elastic Beanstalk
PaaS
¡ AWS Fargate
CaaS
14
¡ Step 2. Create a Task Definition
15
16
17
¡ Step 3. Deploy task
18
¡ Step 4. Run task by Clicking on “Run task”
19
20
21
22
¡ Lastly, please remember to delete the cluster
23
¡ https://github.com/aws-samples/aws-net-guides/tree/master/Containers/Deploy-ASP.NET-Core-
To-Fargate
¡ https://www.youtube.com/watch?v=9u_HKS_Lv6o
¡ https://github.com/aws/containers-roadmap
24