[BUG] Bedrock integration is not working

Resolved 💬 5 comments Opened Mar 22, 2025 by yangcheng Closed May 21, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.53 (Claude Code)
  • Operating System: macOS 15.3.1
  • Terminal:iTerm2

Bug Description

Unable to use bedrock , it was working a few days ago.

Steps to Reproduce

I tried

ANTHROPIC_MODEL='us.anthropic.claude-3-7-sonnet-20250219-v1:0' \
CLAUDE_CODE_USE_BEDROCK=1 \
CLAUDE_CODE_DEBUG=1 \
AWS_REGION_NAME='us-west-2' \
AWS_DEFAULT_REGION='us-west-2' \
claude
╭─────────────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!                  │
│                                                             │
│   /help for help                                            │
│                                                             │
│   cwd: /xxxx  │
╰─────────────────────────────────────────────────────────────╯

> /init is analyzing your codebase…
  ⎿  API Error: 403 You don't have access to the model with the specified model ID.

I then try to use full arn for inference profile, now claude returns a different error message

ANTHROPIC_MODEL='arn:aws:bedrock:us-west-2::inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0' \
CLAUDE_CODE_USE_BEDROCK=1 \
AWS_REGION_NAME='us-west-2' \
AWS_DEFAULT_REGION='us-west-2' \
claude
╭─────────────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!                  │
│                                                             │
│   /help for help                                            │
│                                                             │
│   cwd: /xxx  │
╰─────────────────────────────────────────────────────────────╯

> /init is analyzing your codebase…
  ⎿  API Error: Truncated event message received.

Expected Behavior

claude works with bedrock

Actual Behavior

errors

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗