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

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