This lab walks you through the steps to launch, configure, and manage an HTTPD container on ECS Cluster with the application load balancer.
You will practice using Amazon Elastic Container Service (ECS) Cluster by creating Task definitions and Service. During the creation of the Service inside the cluster, you will select an existing Application load balancer and Target group.
You will create an auto-scaling policy and trigger the scaling activity using ApacheBench(ab).
Duration: 90 minutes
AWS Region: US East (N. Virginia) us-east-1
Launching Lab Environment
Create a Security Group for the Load Balancer
Create a Security Group for the ECS Cluster
Create a Key Pair for the EC2 instances, inside the ECS Cluster
Creating the Target Group and Load Balancer.
Launching an ECS Cluster
Create Task definitions.
Create a Service and start HTTPD container in ECS
Navigate to the cluster instance
SSH into the underlying EC2 instance
Trigger scaling activity
Check the scaling activities on service events
Validation of the lab
Deleting AWS Resources.