AWS Bedrock
The Bedrock plugin is provided by
github.com/xavidop/genkit-aws-bedrock-go.
The reference runner registers it as the bedrock plugin type.
apiVersion: v1kind: Secretmetadata: name: bedrock-credentialstype: OpaquestringData: AWS_ACCESS_KEY_ID: ... AWS_SECRET_ACCESS_KEY: ... # Optional, only for temporary credentials (e.g. STS / AssumeRole) # AWS_SESSION_TOKEN: ...---apiVersion: genkit.dev/v1alpha1kind: PluginConfigmetadata: name: bedrockspec: type: bedrock region: us-east-1 credentialsRef: name: bedrock-credentials credentialKeys: - AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY # - AWS_SESSION_TOKEN---apiVersion: genkit.dev/v1alpha1kind: Modelmetadata: name: bedrock-claude-haikuspec: provider: bedrock model: anthropic.claude-3-haiku-20240307-v1:0 pluginConfigRef: name: bedrock defaultConfig: temperature: 0.3 maxOutputTokens: 1024Credentials
Section titled “Credentials”| Default key | Notes |
|---|---|
AWS_ACCESS_KEY_ID | Standard AWS access key |
AWS_SECRET_ACCESS_KEY | Standard AWS secret key |
AWS_SESSION_TOKEN | Optional, for temporary credentials (STS, SSO) |
In FlowSet mode the runner reads the mounted credential files and
exports them to the process environment so the AWS SDK’s default
credential chain picks them up. You can also run on EKS with IRSA / Pod
Identity and leave credentialsRef pointing at an empty Secret — in
that case do not set credentialKeys.
Region
Section titled “Region”Set spec.region (preferred) or spec.extraConfig.region. The
extraConfig value takes precedence.
Reference
Section titled “Reference”- Plugin:
github.com/xavidop/genkit-aws-bedrock-go - Model access: AWS console → Bedrock → Model access (must be granted per model, per region).
- IAM: at minimum
bedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamon the foundation models you use.