claude-code - 💡(How to fix) Fix [BUG] Bedrock add-in sends us.anthropic.* inference profile from ap-southeast-2, causing 400 [1 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54857Fetched 2026-04-30 06:33:58
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×2subscribed ×1unlabeled ×1

Error Message

Claude for Office connection failed (Bedrock) Build: b2934996a310d14d9341cbeb6b21eca12f40aba7

400 The provided model identifier is invalid.

Request: aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess aws_region: ap-southeast-2

Manifest params: m: unified-1.0.0.12 aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess aws_region: ap-southeast-2 entra_sso: 1 auto_connect: 0 et:

Bootstrap response: (not called)

Raw error: 400 The provided model identifier is invalid.

Root Cause

When the Claude for Office add-in is configured with aws_region=ap-southeast-2, it invokes Bedrock using a US cross-region inference profile (us.anthropic.claude-opus-4-7). AWS Bedrock rejects this with 400 The provided model identifier is invalid because us.* profiles cannot
be invoked from APAC endpoints.

Code Example

Claude for Office connection failed (Bedrock)
Build: b2934996a310d14d9341cbeb6b21eca12f40aba7

400 The provided model identifier is invalid.

Request:
  aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess
  aws_region: ap-southeast-2

Manifest params:
  m: unified-1.0.0.12
  aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess
  aws_region: ap-southeast-2
  entra_sso: 1
  auto_connect: 0
  et: 

Bootstrap response:
  (not called)

Raw error:
400 The provided model identifier is invalid.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When the Claude for Office add-in is configured with aws_region=ap-southeast-2, it invokes Bedrock using a US cross-region inference profile (us.anthropic.claude-opus-4-7). AWS Bedrock rejects this with 400 The provided model identifier is invalid because us.* profiles cannot
be invoked from APAC endpoints.

The add-in should use ap.anthropic.claude-opus-4-7 when the configured region is in the APAC partition.

Steps to reproduce:

  1. Deploy manifest with aws_region=ap-southeast-2, entra_sso=1
  2. Open the add-in in Excel for web (Chrome on macOS)
  3. Hit Connect

Expected: Request goes to bedrock-runtime.ap-southeast-2.amazonaws.com/model/ap.anthropic.claude-opus-4-7/invoke

Actual: Request goes to bedrock-runtime.ap-southeast-2.amazonaws.com/model/us.anthropic.claude-opus-4-7/invoke → 400 The provided model identifier is invalid

Environment:

  • Build: b2934996a310d14d9341cbeb6b21eca12f40aba7
  • Host: Excel$Web (Chrome on macOS)
  • Manifest version: unified-1.0.0.12
  • aws_region: ap-southeast-2

What Should Happen?

Claude for Excel should function correctly using a custom manifest to access AWS Bedrock in ap-southeast-2.

Expected: Request goes to bedrock-runtime.ap-southeast-2.amazonaws.com/model/ap.anthropic.claude-opus-4-7/invoke

Error Messages/Logs

Claude for Office connection failed (Bedrock)
Build: b2934996a310d14d9341cbeb6b21eca12f40aba7

400 The provided model identifier is invalid.

Request:
  aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess
  aws_region: ap-southeast-2

Manifest params:
  m: unified-1.0.0.12
  aws_role_arn: arn:aws:iam::217425570363:role/ClaudeBedrockAccess
  aws_region: ap-southeast-2
  entra_sso: 1
  auto_connect: 0
  et: 

Bootstrap response:
  (not called)

Raw error:
400 The provided model identifier is invalid.

Steps to Reproduce

Steps to reproduce:

  1. Deploy manifest with aws_region=ap-southeast-2, entra_sso=1
  2. Open the add-in in Excel for web (Chrome on macOS)
  3. Hit Connect

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Excel$Web Build: b2934996a310d14d9341cbeb6b21eca12f40aba7

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can be fixed by using the correct AWS Bedrock inference profile for the APAC region, which is ap.anthropic.claude-opus-4-7, instead of the default us.anthropic.claude-opus-4-7.

Guidance

  • Verify that the aws_region parameter is correctly set to ap-southeast-2 in the manifest.
  • Check the code that constructs the Bedrock request URL to ensure it uses the correct inference profile based on the aws_region.
  • Update the code to use the ap.anthropic.claude-opus-4-7 profile when the aws_region is in the APAC partition.
  • Test the fix by redeploying the manifest with the updated aws_region and verifying that the request goes to the correct Bedrock endpoint.

Example

No code snippet is provided as the issue does not include the relevant code.

Notes

The fix assumes that the issue is caused by the incorrect inference profile being used. If the issue persists after applying the fix, further investigation may be needed to determine the root cause.

Recommendation

Apply the workaround by updating the code to use the correct inference profile based on the aws_region. This should resolve the issue and allow the Claude for Office add-in to function correctly in the APAC region.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING