Bedrock: every docs example model ID fails (400 invalid / 404 end-of-life) — use the Claude Opus 5.5 inference profile
Thanks for the [1m] docs and for surfacing contextWindow in the result output (#1608). I used that same field to check the IDs below.
main at 9ca9355 already runs Claude Opus 5.5 on Bedrock with no action changes. The only problem is the docs examples.
Describe the bug
Every Bedrock example in the docs passes a model ID that Bedrock rejects, so a workflow copied from them fails on the first call. This is the Bedrock side of point 2 in #584 (same claude-4-0-sonnet-20250805 name, first-party form there).
claude_args: --model …, use_bedrock: "true", us-west-2 |
Before (docs today) | After (proposed) |
|---|---|---|
docs/cloud-providers.md L34, L77 · configuration.md L266 · migration-guide.md L277 |
❌ anthropic.claude-4-0-sonnet-20250805-v1:0 → 400 The provided model identifier is invalid. |
✅ us.anthropic.claude-opus-5-5[1m] → OK, contextWindow 1000000 |
base-action/README.md L458, L493 |
❌ anthropic.claude-3-7-sonnet-20250219-v1:0 → 404 This model version has reached the end of its life. |
✅ us.anthropic.claude-opus-5-5[1m] → OK, contextWindow 1000000 |
us.anthropic.claude-opus-5-5 (no [1m]) |
– | ⚠️ OK, but contextWindow 200000 (the #1600 behaviour), so the proposal adds [1m] |
--model opus alias |
✅ global.anthropic.claude-opus-5-5[1m], 1000000 |
✅ unchanged |
us.anthropic.claude-opus-5 |
✅ OK |
✅ unchanged |
| Action code, inputs, Vertex/first-party examples | – | ✅ untouched (docs only) |
To Reproduce
$ CLAUDE_CODE_USE_BEDROCK=1 AWS_REGION=us-west-2 claude -p "Reply with the word OK" --model "anthropic.claude-4-0-sonnet-20250805-v1:0" 2>/dev/null
API Error (anthropic.claude-4-0-sonnet-20250805-v1:0): 400 The provided model identifier is invalid.. Run --model to pick a different model.
$ CLAUDE_CODE_USE_BEDROCK=1 AWS_REGION=us-west-2 claude -p "Reply with the word OK" --model "anthropic.claude-3-7-sonnet-20250219-v1:0" 2>/dev/null
There's an issue with the selected model (anthropic.claude-3-7-sonnet-20250219-v1:0). It may not exist or you may not have access to it. Run --model to pick a different model.
$ CLAUDE_CODE_USE_BEDROCK=1 AWS_REGION=us-west-2 claude -p "Reply with the word OK" --model "us.anthropic.claude-opus-5-5[1m]" 2>/dev/null
OKSame through base-action/src/index.ts with INPUT_CLAUDE_ARGS='--model anthropic.claude-4-0-sonnet-20250805-v1:0 --max-turns 1': conclusion = failure. With '--model "us.anthropic.claude-opus-5-5[1m]" --max-turns 1': conclusion = success.
Expected behavior
The copy-paste examples run. The bare anthropic.claude-opus-5-5 isn't a drop-in: Bedrock only serves it through an inference profile (on-demand throughput isn’t supported). global.anthropic.claude-opus-5-5[1m] also works (checked us-east-1 and us-west-2) if you'd rather not pin the US profile.
Workflow yml file
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: us-west-2
- uses: anthropics/claude-code-action@v1
with:
use_bedrock: "true"
claude_args: |
--model anthropic.claude-4-0-sonnet-20250805-v1:0API Provider
[ ] Anthropic First-Party API (default) [x] AWS Bedrock [ ] GCP Vertex
Additional context
Proposed fix, 6 lines in 4 files, docs only. bun test (966 pass), format:check and typecheck are unchanged:
- --model anthropic.claude-4-0-sonnet-20250805-v1:0
+ --model "us.anthropic.claude-opus-5-5[1m]"Same for the two anthropic.claude-3-7-sonnet-20250219-v1:0 lines in base-action/README.md. The quoting matches the claude-opus-5[1m] example in configuration.md, and parseSdkOptions passes the value through unchanged. I only tested Bedrock IDs, not the Vertex ones. I have the branch ready if a PR helps.
list-foundation-models (us-east-1):
anthropic.claude-4-0-sonnet-20250805-v1:0 -> NOT LISTED
anthropic.claude-3-7-sonnet-20250219-v1:0 -> NOT LISTED
anthropic.claude-opus-5-5 -> ACTIVE, INFERENCE_PROFILE only
profiles: us.anthropic.claude-opus-5-5, global.anthropic.claude-opus-5-5
Converse (boto3, us-west-2):
anthropic.claude-4-0-sonnet-20250805-v1:0 -> 400 ValidationException: The provided model identifier is invalid.
anthropic.claude-3-7-sonnet-20250219-v1:0 -> 404 ResourceNotFoundException: This model version has reached the end of its life. Please refer to the AWS documentation for more details.
anthropic.claude-opus-5-5 -> 400 ValidationException: Invocation of model ID anthropic.claude-opus-5-5 with on-demand throughput isn’t supported. ...
us.anthropic.claude-opus-5-5 -> OK end_turn
global.anthropic.claude-opus-5-5 -> OK end_turn
claude -p --output-format json, modelUsage (contextWindow, maxOutputTokens):
us.anthropic.claude-opus-5-5 -> OK (200000, 128000)
us.anthropic.claude-opus-5-5[1m] -> OK (1000000, 128000)
global.anthropic.claude-opus-5-5 -> OK (200000, 128000)
global.anthropic.claude-opus-5-5[1m] -> OK (1000000, 128000)
us.anthropic.claude-opus-5 -> OK (200000, 64000)
opus -> global.anthropic.claude-opus-5-5[1m] -> OK (1000000, 128000)
BEFORE (main 9ca9355)
docs/cloud-providers.md:34 anthropic.claude-4-0-sonnet-20250805-v1:0 -> API Error (...): 400 The provided model identifier is invalid.
docs/cloud-providers.md:77 anthropic.claude-4-0-sonnet-20250805-v1:0 -> API Error (...): 400 The provided model identifier is invalid.
docs/configuration.md:266 anthropic.claude-4-0-sonnet-20250805-v1:0 -> API Error (...): 400 The provided model identifier is invalid.
docs/migration-guide.md:277 anthropic.claude-4-0-sonnet-20250805-v1:0 -> API Error (...): 400 The provided model identifier is invalid.
base-action/README.md:458 anthropic.claude-3-7-sonnet-20250219-v1:0 -> There's an issue with the selected model (...). It may not exist ...
base-action/README.md:493 anthropic.claude-3-7-sonnet-20250219-v1:0 -> There's an issue with the selected model (...). It may not exist ...
AFTER (proposed branch)
docs/cloud-providers.md:34 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000
docs/cloud-providers.md:77 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000
docs/configuration.md:266 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000
docs/migration-guide.md:277 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000
base-action/README.md:458 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000
base-action/README.md:493 us.anthropic.claude-opus-5-5[1m] -> OK | contextWindow=1000000References: Claude Opus 5.5 announcement · migration guide · models overview
Source: anthropics/claude-code-action