hands-on lab

Configuring an AWS Lambda Target on an Application Load Balancer

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 326
Rating: 5/5
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.

Description

Application Load Balancers support content-based routing and are capable of distributing traffic across multiple targets and multiple Availability Zones. One type of target that is capable of serving HTTP requests to an application load balancer is an AWS Lambda function. This allows you to build out your serverless applications using AWS Lambda, then configure an application load balancer to provide the HTTP frontend to serve your client requests.

In this lab, you will create an AWS Lambda function that will be used to retrieve an HTML file from an Amazon S3 bucket. You will also configure the necessary listener rule and target group to allow an application load balancer to invoke your function.

Learning objectives

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

  • Create an AWS Lambda function
  • Create an Application Load Balancer listener rule
  • Create an Application Load Balancer target group

Intended audiences

  • Candidates for the AWS Certified Solutions Architect - Associate exam
  • Cloud Architects
  • Software Engineers

Prerequisites

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

  • Elastic Load Balancing (ELB)
  • AWS Lambda

The following content can be used to fulfill the prerequisites:

Updates

June 30th, 2023 - Updated lab steps to reflect the new AWS console

June 14th, 2023 - Resolved intermittent deployment issue

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Creating a Lambda Function
Configuring an AWS Lambda Target on an Application Load Balancer