Amazon API Gateway REST API to Private ALB via VPC Link V2

API Gateway → VPC Link V2 → Application Load Balancer → Amazon ECS

This pattern demonstrates REST API Gateway integration with a private Application Load Balancer and ECS Fargate cluster using VPC Link V2

This pattern deploys a REST API Gateway endpoint that integrates with a private Application Load Balancer using VPC Link V2
The private ALB routes traffic to an ECS Fargate cluster running containerized applications
The pattern creates all required security groups, IAM roles, and networking components for secure private integration

< 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-vpclink-pvt-alb-terraform

Deploy

terraform init && terraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy

Created by:

Abhishek Agawane

Abhishek Agawane

Abhishek is a Security Consultant at Amazon Web Services with more than 9 years of industry experience. He helps organizations architect resilient, secure, and efficient cloud environments, guiding them through complex challenges and large-scale infrastructure transformations. He has helped numerous organizations enhance their cloud operations through targeted optimizations, robust architectures, and best-practice implementations.