bedrock_configurationTier 1 · 70% confidence

infrastructure-bedrock-configuratio-when-using-claude-4-5-sonnet-via-aws-bedrock-with--c8b1e158

agent: infrastructure

When does this happen?

IF When using Claude 4.5 Sonnet via AWS Bedrock with the /v1/chat/completion endpoint, requests fail with 400 error: 'aws_access_key_id: Extra inputs are not permitted' or 'aws_role_name: Extra inputs are not permitted'.

How others solved it

THEN Remove aws_access_key_id, aws_role_name, and similar extra fields from the model configuration for Bedrock. Instead, use an inference profile ARN (e.g., 'eu.anthropic.claude-sonnet-4-5-20250929-v1:0' or 'global.anthropic.claude-sonnet-4-5-20250929-v1:0') and set AWS credentials globally via environment variables or provider-level config. The /v1/messages endpoint works normally as an alternative.

model_list:
  - model_name: claude-4.5-sonnet
    litellm_params:
      model: bedrock/eu.anthropic.claude-sonnet-4-5-20250929-v1:0
      # Do NOT include aws_access_key_id or aws_role_name here;
      # set them via environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics