Skip to main content
Bedrock usage and charges stay in your AWS account.
  • Setup follows the same admin workflow as Provider Keys, plus a Bedrock model ID and region for each model.
  • Fireworks stores the credential.
Before you start, confirm your AWS account can invoke every model you plan to add. Some models need explicit Bedrock model access, a Marketplace agreement, or approval from AWS or the model provider. Anthropic may also require a one-time use-case form.

Supported models

  • Copy the Bedrock model ID exactly from AWS. Any geo or global profile, or ARN, that AWS lists for the model also works if your region can invoke it. Under US data residency the route’s own region is what matters (below).
  • Supported regions: us-east-1, us-east-2, us-west-1, and us-west-2.

US data residency

If your Fireworks account enforces US data residency, each route must be received in the US. The inference profile is yours to choose:
  • The route’s AWS region must be a US region, such as us-east-1. AWS treats the endpoint region as where the request is received.
  • us. profiles and in-Region model IDs are served from US regions.
  • Your own global. profiles are also allowed. AWS can serve a global. profile from any region, so a request on one may be processed outside the US. To keep Bedrock in the US, use a us. or in-Region profile. Fireworks never selects a global. profile for you.
  • Other-geo profiles, such as eu., ca., and us-gov., and any route whose region sits outside the US, are rejected. Requests that name that model return 403 with error code region_unavailable.
  • A Messages API request that sends inference_geo: "us" is not served on a global. route. Nexus Auto picks another model instead, and a request that names that Bedrock model returns 400 with error code invalid_request.

Prepare AWS

In the AWS account that pays for inference, request or verify access to each model. Complete any use-case form, Marketplace agreement, or provider approval AWS asks for, then confirm the account can invoke the model or inference profile. Then create one credential, either an IAM role or an API key.
1

Configure the trust policy

In AWS IAM → Roles → Create role, choose Custom trust policy and paste this. Set sts:ExternalId to your exact Fireworks account ID.
Configuring the Fireworks principal ARN and account-specific External ID in an AWS IAM custom trust policy
2

Add Bedrock permissions

In Step 2: Add permissions, select Create inline policy and paste:
3

Create the role

Name the role FireworksBedrockBYOK, or any name that starts with FireworksBedrock. Keep the default IAM path. Create the role, then copy its ARN from the role summary.

Connect in the dashboard

1

Connect the credential

Open Settings → Provider Keys and click Connect on the Amazon Bedrock row.
  • IAM Role: keep the External ID exactly as shown. Paste the role ARN, not the permission policy ARN.
  • API Key: paste the Bedrock key.
Click Continue.
Connecting an Amazon Bedrock IAM role in the Provider Keys dashboard
2

Pick models

In Add models to Amazon Bedrock, select at least one model, then click Connect. The card shows Connecting for about a minute.
3

Fill in the model routes

Connecting stores the credential but routes no traffic yet. For each row under Models using Bedrock, paste the AWS Model ID, select a Region, and click Save.Traffic for those models now bills to your AWS account. Every other model keeps its current provider.

Change model routes later

  • Add model or the trash icon adds or removes a model. Edit models changes a Model ID or Region. Then click Save.
  • Update Key replaces the API key or IAM role ARN and keeps the routes. This is the Replace action on Provider Keys.
  • Remove deletes the Bedrock credential and all its routes.
Amazon Bedrock card menu with Add model, Edit models, Update Key, and Remove

Manage with firectl

firectl is the older way to set up Bedrock and remains supported for existing route files and scripts. For new setups, use Provider Keys in Nexus settings.

Troubleshooting

  • AssumeRole is denied (IAM role): the trust policy needs the exact Fireworks principal ARN and your Fireworks account ID as sts:ExternalId. The role name must start with FireworksBedrock and use the default IAM path.
  • Model not found or region unavailable: copy the exact model or profile ID from AWS, and confirm the region can invoke it.
  • 403 with error code region_unavailable: your account uses US data residency and the route uses an other-geo profile (eu., ca., us-gov.) or an endpoint outside the US. Use a us-* endpoint with a us., in-Region, or global. profile. See US data residency.
  • Connected but traffic doesn’t reach Bedrock: make sure the route list isn’t empty and requests use a route containing one of the configured served model IDs.