Lesson_10_Container_Service
Lesson_10_Container_Service
To achieve these, you will learn a few concepts in this lesson that will
help you find a solution for the given scenario.
Learning Objectives
A container is a standardized software development unit encompassing all elements necessary for a
software application. These elements include code, runtime, system tools, system libraries, and more.
What Is Docker?
Duration:15 min
Problem Statement:
You have been asked to run the hello world container on an EC2 instance.
Assisted Practice: Guidelines
Duration:15 min
Problem Statement:
You have been asked to create a container image repository using AWS ECR and push images
into it.
Assisted Practice: Guidelines
Amazon Elastic Container Registry (ECR) is a fully managed Docker container registry that simplifies
developers' tasks of storing, managing, and deploying Docker container images.
This image illustrates the role of Amazon ECR in the container deployment process:
Amazon Elastic Container Service
Amazon Elastic Container Service (Amazon ECS) is a highly scalable and rapid container
management service that deploys and manages containers on a cluster.
ECS is integrated with the broader AWS platform, offering a secure and user-friendly
solution for executing container workloads in the cloud.
ECS: Features
The image below illustrates how Amazon ECS employs AWS Fargate to execute containers:
ECS: Components
Cluster:
01 It is a logical grouping of tasks or services within ECS.
Container:
02 It is a standardized software unit containing all the
components necessary for an application to
function.
ECS: Components
Task Definition:
03 It is a JSON-formatted text file describing one or
more containers that compose an application.
Task:
04 It is the instantiation of a task definition within an
ECS cluster.
ECS: Components
Service:
05 The purpose of a service is to concurrently execute
and uphold the desired count of tasks within an
Amazon ECS cluster.
Container Agent:
06 It operates on each container instance within an
Amazon ECS cluster and transmits details about
ongoing tasks and the container's resource
utilization to Amazon ECS.
Elastic Container Service (ECS)
Machine learning
Microservices
Websites
Companies Using Amazon ECS
Duration:15 min
Problem Statement:
You have been asked to create an ECS cluster with auto scaling and Container Insights, and
how to run a task definition for an Nginx container on the cluster.
Assisted Practice: Guidelines
01
Service configuration
04
Duration:15 min
Problem Statement:
Steps to be followed:
1. Create a custom VPC and enable DNS hostname
2. Create Internet Gateway
3. Create three subnets
4. Create a Route table and attach it to three subnets
5. Create a Target group
6. Create an application load balancer
7. Create a Cluster
8. Create a Task definition
9. Run the task on the cluster
Introduction to AWS Fargate
AWS Fargate
AWS Fargate is an AWS service that acts as the compute engine for both Amazon
ECS and Amazon EKS.
Duration:15 min
Problem Statement:
Steps to be followed:
1. Create a Fargate cluster
2. Create a task definition
3. Run Fargate Cluster
Key Takeaways