How do I set up AWS Bedrock?
Overview
To allow Aiceberg to invoke models in your AWS Bedrock instance, create an IAM role in your AWS account that Aiceberg can assume. This guide provides the necessary trust policy, permissions, and setup instructions.
Prerequisites
AWS account with Bedrock access
Permissions to create IAM roles in your AWS account
Your unique External ID from Aiceberg (found in your Bedrock model configuration page)
Trust Policy (Assume Role Policy)
Use the trust policy below when creating the role. Replace REPLACE_WITH_YOUR_EXTERNAL_ID with the External ID from your Aiceberg Bedrock model configuration.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::119554510492:root"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "REPLACE_WITH_YOUR_EXTERNAL_ID"
}
}
}
]
}Permissions Policy
Attach an inline policy to the role granting the following permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AicebergBedrockInvoke",
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": "arn:aws:bedrock:*:*:foundation-model/*"
}
]
}Security Best Practices
External ID is a security feature that prevents the "confused deputy problem" in cross-account access. Always use the unique External ID provided by Aiceberg — never share it publicly or reuse it across different services.
Least privilege: The sample policy grants only the minimum permissions required:
bedrock:InvokeModel — synchronous model invocation
bedrock:InvokeModelWithResponseStream — streaming responses
Resource Restrictions (Optional)
You can restrict access to specific regions or models by modifying the Resource ARN.
Specific region example:
Specific model example:
Multiple specific models example:
Infrastructure as Code (IaC) Examples
CloudFormation Template
Terraform
Troubleshooting
Support
If you encounter issues setting up the IAM role, contact Aiceberg support with:
Your Role ARN
Any error messages from AWS or Aiceberg
The Region where your Bedrock models are located
This site uses cookies to deliver its service and to analyze traffic. By browsing this site, you accept the privacy policy.
Last updated