AWS Bedrock
Avant calls sts:AssumeRoleWithWebIdentity with the workspace’s assertion, then signs Bedrock requests with the temporary credentials. Avant never gets an access key, and usage is billed to your AWS account. Read How provider setup works first.
What you create
Section titled “What you create”- An IAM OIDC provider for
https://identity.avant.codeswith client idsts.amazonaws.com. Create it once per account. - An IAM role that trusts that provider only when
aud = sts.amazonaws.comandsubis the workspace’s exact subject. - A policy on the role that allows
bedrock:InvokeModel,bedrock:InvokeModelWithResponseStreamandbedrock:ListFoundationModels.
The role ARN is predictable (arn:aws:iam::<account-id>:role/avant-byoc), so you can create the workspace first, then the role.
Commands
Section titled “Commands”ACCOUNT_ID="$(aws sts get-caller-identity --query Account --output text)"BINDING_SUBJECT="avant:binding:..."
aws iam create-open-id-connect-provider \ --url https://identity.avant.codes --client-id-list sts.amazonaws.com
cat > avant-trust.json <<EOF{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam::${ACCOUNT_ID}:oidc-provider/identity.avant.codes" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "identity.avant.codes:aud": "sts.amazonaws.com", "identity.avant.codes:sub": "${BINDING_SUBJECT}" } } }]}EOFaws iam create-role --role-name avant-byoc --assume-role-policy-document file://avant-trust.json
aws iam put-role-policy --role-name avant-byoc --policy-name avant-bedrock --policy-document '{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:ListFoundationModels"], "Resource": "*" }]}'Skip create-open-id-connect-provider if the account already has it. For another workspace in the same account, create another role, or add a second subject to the trust condition.
Create the workspace
Section titled “Create the workspace”| Field | Value |
|---|---|
| AWS region | The Bedrock endpoint region, such as us-east-1 or eu-west-1 |
| IAM role ARN | arn:aws:iam::<account-id>:role/avant-byoc |
Enter the role ARN, not the OIDC provider ARN.
avant workspace create --name bedrock --mode byoc-bedrock \ --region us-east-1 --role-arn arn:aws:iam::123456789012:role/avant-byocavant workspace verify bedrockVerify assumes the role and calls ListFoundationModels.
Model access and residency
Section titled “Model access and residency”Enable access to each model in Bedrock → Model access for the region.
Most models are called through cross-region inference profiles. The policy’s Inference location picks the profile:
- United States or Europe uses the
us.oreu.profile. - Global uses the
global.profile, which runs anywhere and is usually cheaper. You must choose it explicitly. - With no inference location set, the workspace’s region decides.
Some models have no profile in every geography. DeepSeek is in-region only, so it works only when the workspace’s region is one where AWS serves it.
Models
Section titled “Models”| Model | API | Locations | Harnesses |
|---|---|---|---|
claude-sonnet-5 | Messages | Any | Claude Code, OpenCode, Pi, Oh My Pi |
claude-opus-5 | Messages | Any | Claude Code, OpenCode, Pi, Oh My Pi |
claude-opus-5-5 | Messages | Any | Claude Code, OpenCode, Pi, Oh My Pi |
claude-sonnet-5-5 (default) | Messages | us, eu, global | Claude Code, OpenCode, Pi, Oh My Pi |
claude-haiku-5-5 | Messages | us, eu, global | Claude Code, OpenCode, Pi, Oh My Pi |
claude-fable-5-1 | Messages | us, global | Claude Code, OpenCode, Pi, Oh My Pi |
claude-fable-5-2 | Messages | us, global | Claude Code, OpenCode, Pi, Oh My Pi |
grok-4.7 | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-5.6-terra | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-5.6-luna | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6-astra | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6-sol | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6.1-sol | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6.1-terra | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6.2-astra | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6.2-sol | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
gpt-6-luna | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
kimi-k3 | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
kimi-k3.1 | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
glm-5.3 | Chat Completions, Responses | us, global | Codex, OpenCode, Pi, Oh My Pi |
deepseek-v3.2 | Chat Completions | us-east-1, us-east-2, us-west-2, eu-west-2, eu-north-1, ap-northeast-1, ap-south-1, ap-southeast-2, ap-southeast-3, sa-east-1 | OpenCode, Pi, Oh My Pi |
Revoke
Section titled “Revoke”Delete the role, or remove the trust statement.
There’s also an OpenTofu module in infra/customer-onboarding-aws in the Avant repository.