Application Load Balancer to Amazon API Gateway Private Rest API

Application Load Balancer → VPC Endpoint → API Gateway → AWS Lambda

Cross Account Private API Access via Public Application Load Balancer.

This sample pattern allows users from one account to access their Private REST APIs present in another account over the internet.
This facilitates abstraction of network resources (like load balancers, virtual private clouds, endpoints) & application resources (like lambda, api gateway) into separate individual management accounts.

< 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/public-alb-private-api-terraform

Deploy

terraform initterraform apply


Testing

See the repo for additional testing notes.

Cleanup

1. Delete the stack: terraform destroy.
2. Confirm the stack has been deleted: terraform show

Created by:

Abhishek Agawane

Abhishek Agawane

I am a Cloud Support Engineer (Serverless) at AWS who loves cloud computing