
Compare EC2 launch type and Fargate in Amazon ECS, detailing ECS agents on hosts, cluster creation with EC2 instances, and AWS managed Fargate for serverless deployment.
Learn to create ECS clusters with AWS Fargate or EC2 (Linux/Windows), choosing from networking only, EC2 Linux, or EC2 Windows templates, and manage tasks, services, and capacity providers.
Learn to create an AWS Fargate task definition, configure containers, resources, and IAM roles, then add the task to a cluster and prepare for pushing a Docker image to ECR.
Add a container in an ecs task definition using an ecr image, configure port 80, and create the task. Then assign the task to a cluster to start the container.
Create a VPC for your ECS cluster in the AWS console, configure a CIDR block and IPv6, with public and private subnets across two availability zones and a NAT gateway.
Introduction
Overview of ECS Service
Components involved in forming ECS Cluster
Image registry - Amazon ECR
Management - Amazon ECS & Amazon EKS
Hosting - AWS Fargate & Amazon EC2
Create your first ECS Cluster
Define Container, task, Service & Cluster
Lab Session - Run Nginx Application using ECS Cluster
Lab Session - Service in ECS Cluster
Lab Session - Run Docker Application on VM Infrastructure
Lab Session - Build a Docker Image using DockerFile
Create your own VPC - Pre-requisite of Amazon ECS
AWS Fargate
Overview of ECS Cluster - AWS Fargate, EC2 Linux/Windows
Run a task - Fargate Launch Type
Create a service - Fargate Launch type
Task definitions
Create a Docker Image of the Nginx Web App
Push Docker Image to AWS ECR Repository
Add Container in Task Definitions
Run the task of the Nginx App in a Fargate Cluster
Create Service of Nginx App in Fargate Cluster
Update Service in Fargate Cluster
AWS ECS Cluster - EC2 Linux + Networking
Overview of AWS ECS Cluster - EC2 Linux
Create your own VPC for ECS Cluster
Lab - Create EC2 launch type ECS Cluster
Detailed view of the resources on your cluster
Lab - Access Private Subnet Instances
Lab - Access Private Subnet Instances
Create a task for the Nginx Webserver
Overview of Bridge Network Mode
Define task size & add container
Add task in a cluster
Check container status from instances
Access Nginx web server running on Private Subnets
Run multiple containers in the ECS cluster
Dynamic Port Mapping
Overview of Dynamic Port Mapping
Lab - Configure dynamic port mapping
Lab - Add dynamic ports to Security Group
Application Load Balancer in ECS Cluster
Overview of ALB in ECS Cluster
Configure ALB
Define Target Group & Listener in ALB
Create a task for ECS Cluster
Create a service
Detailed view of the resources on your cluster
Test your ALB
Distribution of traffic equally to all containers by ALB
Last Lecture