Amazon API Gateway REST API Integration with Private ALB integration

Amazon API Gateway → Network Load Balancer → App. Load Balancer → AWS Lambda

This pattern explains how to integrate an Amazon API Gateway REST API with an Application Load Balancer.

To work around this limitation for private ALBs, a multi-step approach is necessary
1. Use an API Gateway VPC to integrate your API with a private Network Load Balancer.
2. Use the Network Load Balancer to forward the API request to the private Application Load Balancer
3. Application Load Balancer will forward the traffic to Lambda Function configured on HTTPS listener.

< 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/apigw-rest-api-private-alb-integration

Deploy

sam deploy


Testing

Once the application is deployed, retrieve the API URL provided as output and open it in a browser page.

Cleanup

Delete the stack: sam delete.

Created by:

Vamsi Pulikonda

Vamsi Pulikonda

I am a cloud computing enthusiast working as a Cloud Engineer at Amazon Web Services.

Follow on LinkedIn