ALB, Amazon Cognito and AWS Lambda integration

Application Load Balancer → Amazon Cognito → AWS Lambda

Create an ALB, Cognito and Lambda integration to fetch regional metrics

This pattern explains how to deploy a SAM application that integrates an Application Load Balancer, Cognito and Lambda to fetch Lambda regional metrics.
We will be deploying an Application Load Balancer in front of the Lambda function. Access to the Lambda function is given after authenticating user via AWS Cognito
Once the authentication is successful, the user is redirected to an HTML page which will display list of Lambda's regional metrics.

< 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-cognito-lambda

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Jainam Shah

Jainam Shah

Technical Account Manager @ AWS