Bedrock AccessDeniedException: How to Fix Model Access Errors
Bedrock access errors usually mean the model isn't enabled for your account, IAM lacks bedrock:InvokeModel, or the model needs an inference profile.
Typical errors:
AccessDeniedException: You don't have access to the model with the specified model ID.
ValidationException: Invocation of model ID ... with on-demand throughput isn't supported.1. Is the model available to your account?
Open Bedrock → Model access (or the model catalog) in the same Region your code uses. Some providers require you to accept their terms or submit a short use-case form before first use.
2. Does your IAM identity have permission?
The calling role (e.g. your Lambda's execution role) needs:
{
"Effect": "Allow",
"Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
"Resource": "*"
}Scope Resource down to specific model or inference profile ARNs once things work. Also check for Service
Control Policies that deny Bedrock or certain Regions.
3. "On-demand throughput isn't supported"? Use an inference profile
Some models must be called through a cross-Region inference profile. Its ID has a geographic prefix, like
us. followed by the model ID. Use the profile ID (or ARN) as modelId. With profiles, IAM must allow the
profile ARN and the underlying model ARNs in the Regions it routes to.
4. Check the Region and model ID
- The client's
region_namemust be a Region where that model (or profile) is offered. - Copy model IDs from the console rather than typing them. A small typo or an outdated version suffix causes validation errors.
5. Using a Knowledge Base?
The Knowledge Base's service role also needs permission to invoke the embedding model and the generation model.
Test in the Bedrock console playground with the same model first. If it works there but not in code, the problem is IAM, the Region, or the model ID in your code.
Learn more: Call a model with the Converse API and IAM policies.
Key takeaways
- Enable or request model access in the same Region your code uses.
- The calling role needs bedrock:InvokeModel (and the streaming action if you stream).
- "On-demand throughput isn't supported" means you should call the model through an inference profile.