API Gateway REST API to SQS to Lambda to Bedrock

Query Amazon Bedrock asynchronously.

Amazon API GatewayAmazon SQSAWS LambdaAmazon Bedrock

#!/usr/bin/env python3
import os

import aws_cdk as cdk

from apigw_sqs_lambda import ApigwSqsLambdaStack
import aws_cdk as cdk

app = cdk.App()
ApigwSqsLambdaStack(app, "genai-simple-scalable-api")
app.synth()

Download

git clone https://github.com/aws-samples/serverless-patterns
cd serverless-patterns/apigw-rest-api-sqs-lambda-bedrock-cdk

Pattern repository

View on GitHub

Last updated on 26 Dec 2024

Edit this page