hands-on lab

Migrating an NGINX Load Balancer to AWS

Up to 1h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Elastic Load Balancing (ELB) is a serverless offering from AWS that you can use to replace legacy load balancing setups such as NGINX. AWS Elastic Load Balancing automatically scales with your workload as traffic changes, freeing you from the technical complexity of implementing automated scaling.

Learning how to replace a self-hosted load balancer with an Application Load Balancer will benefit anyone who migrates web-based infrastructure into the public AWS cloud.

In this hands-on lab, you will examine an existing NGINX load balancing configuration and replace it with an Application Load Balancer.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Locate and inspect an NGINX configuration file
  • Create an Elastic Load Balancing Target Group
  • Create an Application Load Balancer

Intended audience

  • Candidates for the AWS Certified Security Specialty certification
  • Cloud Architects
  • DevOps Engineers


Familiarity with the following will be beneficial but is not required:

  • Elastic Load Balancing (ELB)
  • Amazon Elastic Compute Cloud (EC2)

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

About the author

Learning paths

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Connecting to the Virtual Machine Using EC2 Instance Connect
Examining the Nginx Load Balancing Configuration
Creating a Target Group
Creating an Application Load Balancer