Configure Amazon Bedrock models for use with Onyx
IAM (Recommended for AWS environments)
AmazonBedrockLimitedAccess
policy. Optionally,
you can attach the AmazonBedrockFullAccess
and AmazonBedrockMarketplaceAccess
policies.Once created, attach the IAM Role to the environment that Onyx is running in. For example,
attach the IAM Role to your Onyx EC2 instance or EKS service account.Access Key (for non-AWS environments)
AmazonBedrockLimitedAccess
policy.
Optionally, you can attach the AmazonBedrockFullAccess
and AmazonBedrockMarketplaceAccess
policies.Once created, go to your IAM User’s Security Credentials tab.
Create a new Access Key and copy the Access Key ID and Secret Access Key.Provide these credentials to Onyx using one of the following methods:.env
file as AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
~/.aws/credentials
Bedrock API Key (for non-AWS environments)
AmazonBedrockLimitedAccess
policy.Submit your API key to Onyx through the Onyx Bedrock configuration UI.Set up your Authentication Method
Enable Desired Models
Navigate to AI Model Configuration Page
Configure Bedrock Provider
AWS Access Key ID
and AWS Secret Access Key
or AWS Bedrock API Key
.Once your region and credentials are set, click the Fetch Available Model for Region button.Configure Default and Fast Models
Choose Visible Models
Designate Provider Access