Configure Application Auto Scaling using Target Tracking policy in ECS

Lab Details

  1. This lab walks you through the steps to launch, configure, and manage an HTTPD container on ECS Cluster with the application load balancer.

  2. 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. 

  3. You will create an auto-scaling policy and trigger the scaling activity using ApacheBench(ab).

  4. Duration: 90 minutes

  5. AWS Region: US East (N. Virginia) us-east-1

Architecture Diagram

Task Details

  1. Launching Lab Environment

  2. Create a Security Group for the Load Balancer

  3. Create a Security Group for the ECS Cluster

  4. Create a Key Pair for the EC2 instances, inside the ECS Cluster

  5. Creating the Target Group and Load Balancer.

  6. Launching an ECS Cluster

  7. Create Task definitions.

  8. Create a Service and start HTTPD container in ECS

  9. Navigate to the cluster instance

  10. SSH into the underlying EC2 instance

  11. Trigger scaling activity

  12. Check the scaling activities on service events

  13. Validation of the lab

  14. Deleting AWS Resources.