Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Amazon Bedrock (Runtime API) error

Amazon Bedrock 400 NotAuthorized: what it means and how to fix it

Error message
400 NotAuthorized

Retry? Not statedLast verified 2 documented fixes1 source

What it means

You do not have permission to perform this action.

Causes

  • Missing IAM permissions for the Amazon Bedrock action
  • IAM role lacking appropriate permissions or trust relationships
  • Organizational policies or service control policies restricting access

How to fix it

  1. Fix 1.

    Review your IAM permissions; if using an IAM role, verify its permissions and trust relationships.

  2. Fix 2.

    Check for organizational policies or service control policies that might be restricting your access.

More Amazon Bedrock errors

All 22 Amazon Bedrock errors

HTTP 400 at other providers

Compare 400 across providers

FAQ

What does the Amazon Bedrock error "400 NotAuthorized" mean?

You do not have permission to perform this action.

How do I fix Amazon Bedrock "400 NotAuthorized"?

There are 2 documented fixes. Start with the first: Review your IAM permissions; if using an IAM role, verify its permissions and trust relationships.

Should I retry Amazon Bedrock "400 NotAuthorized"?

Not stated. The official docs do not say whether this error is retryable.

Which other AI APIs return HTTP 400?

Per their official error docs: Anthropic API (400 invalid_request_error; 400 invalid_request_error (spend limit reached)), Azure OpenAI (400 Bad Request; 400 content_filter), Cohere API (400 Bad Request; 400 Bad Request (too many tokens)), DeepSeek API (400 - Invalid Format), Gemini API (400 invalid_request; 400 failed_precondition; 400 parameter_unknown; 400 INVALID_ARGUMENT; 400 FAILED_PRECONDITION), Groq API (400 Bad Request), Mistral API (400 Bad request), OpenAI API (400 invalid_request_error (Invalid service_tier argument); 400 BadRequestError), OpenRouter (400 invalid_request; 400 invalid_prompt; 400 context_length_exceeded; 400 max_tokens_exceeded; 400 token_limit_exceeded; 400 string_too_long; 400 invalid_image; 400 image_too_large; 400 image_too_small; 400 unsupported_image_format; 400 image_download_failed), Vertex AI (400 INVALID_ARGUMENT / FAILED_PRECONDITION), xAI API (400 Bad Request).

Sources

Last verified against 1 source: Amazon Bedrock's official docs and official SDK repositories.

Newsletter

Know when the APIs change

One email per week. New model releases, API changes, what broke, and how developers are working around it.