Skip to main content
Connect Amazon Bedrock with an IAM role and xpander calls Bedrock in your AWS account with short-lived credentials it gets by assuming that role. No access key is stored, you can revoke access at any time by editing the role, and every call shows up in your CloudTrail under a session named xpander-<your organization ID>. Calls on your own Bedrock are never charged credits. You need an organization admin in xpander and permission to create IAM roles in the AWS account that runs Bedrock.
1

Copy the trust policy from xpander

In xpander, open Settings > LLM, choose Add key, pick Amazon Bedrock and select IAM role. The dialog shows:
  • the xpander AWS role your role must trust,
  • your external ID, which is your organization ID,
  • a trust policy and a permissions policy, ready to copy.
xpander always sends your external ID when it assumes your role, and you cannot change it. Another organization cannot use your role even if it knows the role’s ARN, because xpander sends that organization’s own ID instead.
2

Create the role in AWS

Create a role whose trust policy is the one you copied. It has this shape:
3

Attach the permissions policy

Give the role permission to call Bedrock models:
You can narrow Resource to the models and regions you use. Keep the inference-profile entries if you use cross-region profiles such as us.anthropic.claude-sonnet-4-5-20250929-v1:0.
4

Connect and test

Back in the dialog, paste the role ARN (for example arn:aws:iam::123456789012:role/xpander-bedrock), pick the region your Bedrock models run in, and choose Test connection. A passing test means xpander assumed the role and Bedrock accepted the call. Save the key.

Troubleshooting

Fable- and Mythos-class Anthropic models also need your account’s data-retention opt-in per region; see AI vendors.