Amazon API Gateway REST API to AWS Lambda in VPC to Amazon SQS

REST API → AWS Lambda → Amazon SQS

Create a REST API to send message to Lambda then to SQS.

This pattern deploys an Amazon API Gateway REST API with Dev stage, the API key required for the authentication, and a Lambda proxy integration. The API will send a message to the Lambda function that has customer VPC access, and this function will send the message to the SQS queue.

< 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-lambda-vpc-sqs

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Sana FATHALLAH

I'm an AWS premium support engineer and I worked before as Full-Stack engineer.