Application Load Balancer with AWS Lambda as a target

Application Load Balancer → AWS Lambda

Create an Application Load Balancer with Lambda as target

This sample project demonstrates how to create an Application Load Balancer with a target AWS Lambda function.
When the load balancer endpoint is hit in the browser, if the specified URL (`/hello`) path matches, it triggers the Lambda function and the file (hello) is downloaded in your local system with the output from Lambda function.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/alb-lambda-serverless

Deploy

serverless deploy --verbose


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

serverless remove --verbose

Created by:

Anjali Modi

Anjali Modi

Anjali Modi is a Software Engineer working for developing Serverless solutions at Distinction-Dev, India

Follow on LinkedIn