AWS Bedrock
The AWS Bedrock plugin provides access to 90+ AI models available on AWS Bedrock.
Installation
Section titled “Installation”<dependency> <groupId>com.google.genkit</groupId> <artifactId>genkit-plugin-aws-bedrock</artifactId> <version>1.0.0-SNAPSHOT</version></dependency>Configuration
Section titled “Configuration”Uses the AWS Default Credentials Provider Chain. Configure credentials via environment variables, shared credentials file, or IAM roles.
export AWS_ACCESS_KEY_ID=your-keyexport AWS_SECRET_ACCESS_KEY=your-secretexport AWS_REGION=us-east-1import com.google.genkit.plugins.awsbedrock.AwsBedrockPlugin;
Genkit genkit = Genkit.builder() .plugin(AwsBedrockPlugin.create()) .build();
ModelResponse response = genkit.generate( GenerateOptions.builder() .model("aws-bedrock/amazon.nova-pro-v1:0") .prompt("Tell me about AI") .build());Available model families
Section titled “Available model families”- Amazon Nova — Nova Pro, Nova Lite, Nova Micro
- Anthropic Claude — Claude 4.5, Claude 4, Claude 3 families
- Meta Llama — Llama 3, Llama 4
- Mistral — Mistral Large, Small, Mixtral
- Cohere — Command R+, Command R
- OpenAI — Via Bedrock marketplace
- And many more…
Embeddings
Section titled “Embeddings”Bedrock embedding models (Amazon Titan and Cohere Embed) are available via the InvokeModel API:
aws-bedrock/amazon.titan-embed-text-v2:0aws-bedrock/cohere.embed-english-v3aws-bedrock/cohere.embed-multilingual-v3
EmbedResponse response = genkit.embed("aws-bedrock/amazon.titan-embed-text-v2:0", documents);Features
Section titled “Features”- Multi-provider model access
- INFERENCE_PROFILE support for advanced models
- Text generation, streaming, tool calling
Session store
Section titled “Session store”The plugin also ships DynamoDbSessionStore, a DynamoDB-backed agent session store. Construct it and pass it to an agent’s .store(...) to persist server-managed sessions in DynamoDB:
import com.google.genkit.plugins.awsbedrock.session.DynamoDbSessionStore;import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
DynamoDbSessionStore<Map<String, Object>> store = new DynamoDbSessionStore<>(DynamoDbClient.create());See Session Stores for options and the agents-dynamodb-session sample.
Sample
Section titled “Sample”See the aws-bedrock sample.