Amazon API Gateway REST API to Amazon SQS to AWS Lambda to Amazon Bedrock

Amazon API Gateway → Amazon SQS → AWS Lambda → Amazon Bedrock

Query Amazon Bedrock asynchronously.

This pattern creates an Amazon API Gateway REST API that integrates with an Amazon SQS queue. AWS Lambda function consumes the messages from the SQS, calls a model in Amazon Bedrock.

< 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-sqs-lambda-bedrock-cd

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Uma Ramadoss

Uma Ramadoss

Solutions Architect @ AWS.