0% found this document useful (0 votes)
2 views

Week#10(ECS)

API Engineering & Cloud COmputing, ECS- Centennial College

Uploaded by

longquan98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Week#10(ECS)

API Engineering & Cloud COmputing, ECS- Centennial College

Uploaded by

longquan98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

API Engineering

Yin Hua Li
Centennial College

Week#10 2024 Fall

Topic: Amazon Elastic Container Service

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

¡ Pay close attention to supported regions for ECS on AWS


Fargate
§ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate-
Regions.html 10
11
12
13
¡ Step 1. create a cluster in ECS

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy