Balance load across containers through Application Load Balancer 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. Duration: 90 minutes

  4. AWS Region: N. Virginia (us-east-1)

Architecture Diagram

Task Details

  1. Launching Lab Environment.

  2. Create a Security Group for the ECS Cluster.

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

  4. Creating the Load Balancer.

  5. Launching an ECS Cluster.

  6. Create Task definitions.

  7. Create a Service and start HTTPD container in ECS.

  8. Test the HTTPD container in ECS Cluster.

  9. SSH into the underlying EC2 instance and run Docker commands.

  10. SSH into running docker container.

  11. Test the load balancer.

  12. Validation of the lab.

  13. Delete AWS Resources.