Amazon API Gateway to AWS Lambda to Amazon Bedrock

Make a request to Bedrock via API Gateway using Java and CDK

Amazon API GatewayAWS LambdaAmazon Bedrock
package com.example;

import software.amazon.awscdk.App;

public final class InfrastructureApp {
    public static void main(final String[] args) {
        App app = new App();

        new InfrastructureStack(app, "ApiGatewayLambdaBedrockStack");

        app.synth();
    }
}

Download

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

Pattern repository

View on GitHub

Last updated on 26 Dec 2024

Edit this page