Amazon API Gateway Websocket API with VPC Link integration

Amazon API Gateway WebSocket → VPC Link → Network Load Balancer

The AWS SAM template deploys an Amazon API Gateway Websocket API endpoint with a VPC Link integration.

This pattern deploys an Amazon API Gateway WebSocket API endpoint with a VPC Link integration to an internal Network Load Balancer (NLB).
WebSocket APIs with VPC Links allow bidirectional communication between clients and backend services hosted in private VPCs.

< 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-websocket-api-vpclink

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Manasvi Jain

Manasvi Jain

Associate Partner Solutions Architect at AWS

Follow on LinkedIn

Umang Aggarwal

Umang Aggarwal

Technical Account Manager @ AWS

Follow on LinkedIn