页面简介
Connect a Bedrock IAM role or API key so Nexus Auto can call supported models through your AWS account.
正文摘录
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 ModelExample Bedrock model IDAWS referenceClaude Opus 5global.anthropic.claude-opus-5Model ID · RegionsClaude Opus 5.5global.anthropic.claude-opus-5-5Model ID · RegionsGPT-5.6 Solglobal.openai.gpt-5.6-solModel ID · RegionsGPT-6 Solglobal.openai.gpt-6-solModel ID · RegionsGPT-6.1 Solglobal.openai.gpt-6.1-solModel ID · RegionsGPT-6 Astraglobal.openai.gpt-6-astraModel ID · Regions 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 a US location restriction 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 location restriction If your Fireworks account sets Inference and Dedicated Training Location to US, 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. IAM role API key1Configure the trust policyIn AWS IAM → Roles → Create role, choose Custom trust policy and paste this. Set sts:ExternalId to your exact Fireworks account ID.{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::843780049090:role/nexus-bedrock-byok" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "<FIREWORKS_ACCOUNT_ID>" } } } ] } 2Add Bedrock permissionsIn Step 2: Add permissions, select Create inline policy and paste:{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": "*" } ] } 3Create the roleName 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.Generate a long-term key in Amazon Bedrock console → API keys, then copy it.Don’t use a short-term key. It works only in the Region where it was generated, expires within 12 hours, and Fireworks doesn’t refresh it. Connect in the dashboard 1Connect the credentialOpen 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.2Pick modelsIn Add models to Amazon Bedrock, select at least one model, then click Connect. The card shows Connecting for about a minute.3Fill in the model routesConnecting 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. 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. TaskCommandUpload an IAM rolefirectl provider-key upload --provider-type bedrock --aws-iam-role-arn ROLE_ARNUpload an API keyfirectl provider-key upload --provider-type bedrock --from-file PATHBind with routesfirectl provider-key-binding bind bedrock KEY_ID --routes-file ./routes.jsonCheck routesfirectl provider-key-binding get bedrock -o json 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’s location restriction is set to US 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 location restriction. 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. Was this page helpful?YesNo⌘I