Bedrock Agent “Access Denied When Calling Bedrock”: Every Cause and Fix
A Bedrock agent that says “Access denied when calling Bedrock. Check your request permissions and retry the request” is being refused when it calls the model on your behalf.
The short version: check four things in this order. Model access: make sure your account can use the agent’s model at all; for Anthropic models that means an approved use case. The agent’s service role: it needs bedrock:InvokeModel on the exact model the agent uses now, not the one it was created with. Inference profiles: if the agent uses a us. or global. profile, the role also needs the profile ARN and three extra actions. Refresh: Save, Prepare, and give the alias a new version. Giving the role AdministratorAccess doesn’t fix the first cause, which is why so many people try it and still see the error.
The surprise: the most-voted fix for this error has nothing to do with IAM. In the classic case, the account simply hadn’t been granted access to the model yet.
Jake’s team built a parts-lookup agent on Bedrock with a knowledge base of supplier catalogs. It worked in the test window on Friday. On Monday, after switching to a newer model, every question came back with this error.
Jake: "We gave the role admin rights and it still says access denied. What’s left?"
Ethan: "The model itself. Admin rights don’t matter if the account can’t use that model, and the agent’s role was built for the old one."
Why an agent gets access denied when you don’t
When you call InvokeAgent, your own credentials only reach the agent. The agent then calls the model, the knowledge base and any guardrail using its service role, a separate IAM role that Bedrock assumes. The InvokeAgent response stream carries an accessDeniedException event when one of those inner calls is refused. So the questions are about the agent’s side:
| Check | What goes wrong | Fix |
|---|---|---|
| Model access | The account can’t use the model yet, or lost access | Request access (Anthropic: submit the use case); move off Legacy models |
| Role: model statement | Role allows only the model the agent was created with | Add the current model’s ARN |
| Role: inference profile | Agent uses a us./global. profile the role doesn’t allow | Add the profile ARN and three actions |
| Role: knowledge base, guardrail | Missing bedrock:Retrieve or bedrock:ApplyGuardrail | Add those statements |
| Trust policy | Conditions don’t match the agent | Fix aws:SourceAccount / aws:SourceArn |
| Stale configuration | Alias still points at an old version | Save, Prepare, new version, update alias |
Step 1: check model access first
On the most-read forum question with this exact message, the accepted answer was simple: the account hadn’t been granted access to the Anthropic model. First use of an Anthropic model needs a short use case description, and in that case access arrived within hours. Others found their access had quietly dropped.
Test the model directly with your own credentials, outside the agent:
aws bedrock-runtime converse --region us-east-1 \
--model-id us.anthropic.claude-fable-5-2 \
--messages '[{"role":"user","content":[{"text":"ping"}]}]'
If this fails with an access error too, fix access first; our Bedrock AccessDeniedException guide covers it. Also check the model’s state: under the model lifecycle, a Legacy model can be cut off for accounts that haven’t used it for 15 days.
Step 2: the role is scoped to the old model
When the console creates the agent’s role, it writes a policy for the model you picked that day. Switch the agent to a newer model later and the role still only allows the old one. The agent permissions page shows the statement to check:
{
"Sid": "AgentModelInvocationPermissions",
"Effect": "Allow",
"Action": ["bedrock:InvokeModel"],
"Resource": [
"arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-fable-5-2"
]
}
Add the ARN of the model the agent uses now. While testing, a provider wildcard such as arn:aws:bedrock:*::foundation-model/anthropic.* rules this cause out quickly; narrow it again afterwards. New to policy JSON? See IAM policies explained.
Jake: "So the role still pointed at last month’s model?"
Ethan: "Exactly. The console made it for the old model, and nobody told the role we switched."
Step 3: inference profiles need their own permissions
Newer models are often called through a cross-Region inference profile (us., eu., global.). If the agent uses one, the role must allow the profile too. Add the profile ARN and three actions to the same statement:
{
"Sid": "AgentModelInvocationPermissions",
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream",
"bedrock:GetInferenceProfile",
"bedrock:GetFoundationModel"
],
"Resource": [
"arn:aws:bedrock:us-east-1:ACCOUNT_ID:inference-profile/us.anthropic.claude-fable-5-2",
"arn:aws:bedrock:*::foundation-model/anthropic.claude-fable-5-2"
]
}
The foundation-model ARN with * in the Region slot covers every Region the profile can route to. Need the exact IDs? Our Bedrock model IDs list shows each model’s profiles.
Step 4: knowledge bases, guardrails and action groups
| If the agent uses… | Add to the service role | On this resource |
|---|---|---|
| A knowledge base | bedrock:Retrieve, bedrock:RetrieveAndGenerate | The knowledge base ARN |
| A guardrail | bedrock:ApplyGuardrail | The guardrail ARN |
| Action groups with an OpenAPI schema in S3 | s3:GetObject | The schema file |
| Action groups backed by Lambda | A resource policy on the function that lets Bedrock invoke it | Each Lambda function |
| Multi-agent collaboration | bedrock:GetAgentAlias, bedrock:InvokeAgent | The collaborator agent aliases |
The knowledge base also needs its own role to reach its embeddings model and vector store; see Bedrock knowledge base setup.
Turn on the trace to see which of these failed: enableTrace=True in invoke_agent, or the trace panel in the console test window. Our InvokeAgent guide shows how to read it.
Step 5: check the trust policy
The role must trust Bedrock, and the conditions must match your agents:
{
"Effect": "Allow",
"Principal": { "Service": "bedrock.amazonaws.com" },
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": { "aws:SourceAccount": "ACCOUNT_ID" },
"ArnLike": { "aws:SourceArn": "arn:aws:bedrock:us-east-1:ACCOUNT_ID:agent/*" }
}
}
A Region or account number copied from another environment is a common slip here.
Step 6: refresh the agent and its alias
- Open the agent in the console and choose Save, then Prepare, even if nothing changed.
- Test in the test window, which uses the working draft.
- Create a new version, and point your alias at it.
- Call the alias again from your application.
People regularly report the error vanishing only after this refresh: the agent had kept an old configuration. Remember that an alias always runs a numbered version, never the draft you just fixed.
For teams: keep agents from breaking on model changes
- Manage the agent role in code (CloudFormation, CDK or Terraform) and update the model ARN in the same change that switches the model.
- Before switching models, call the new model once with the role’s permissions to confirm access.
- Watch the model cards for Legacy notices on the models your agents use.
- If the error turns into “Your request rate is too high”, it’s throttling now, not access; see Bedrock too many requests. If it becomes “could not resolve the foundation model”, check the ID: model ID fix.
Jake’s fix
- Called the new model directly: it worked, so model access was fine.
- Opened the agent role: it only allowed last month’s model.
- Added the inference profile ARN, the foundation-model ARN with a Region wildcard, and the three profile actions.
- Saved, prepared, created version 3 and moved the alias to it. Answers came back.
Jake: "And next time we change models?"
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: AI Practitioner (AIF-C01) • Machine Learning Engineer – Associate (MLA-C02) • Solutions Architect – Associate (SAA-C03) • Developer – Associate (DVA-C03 from December 1, 2026).
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. A Bedrock agent returns "Access denied when calling Bedrock" even though its service role has AdministratorAccess. Calling the same model directly also fails with an access error. What should the team do first?
Get model access for the account (for Anthropic models, submit the use case). IAM permissions on the role cannot grant access to a model the account is not allowed to use.
2. An agent worked until it was switched to a newer model; now every call is denied. Model access is confirmed. What is the most likely cause?
The console-created service role still allows bedrock:InvokeModel only on the previous model ARN. Add the new model ARN (or its inference profile and foundation-model ARNs), then prepare the agent.
3. An agent uses the us. cross-Region inference profile for its model. Which permissions must its service role add?
The inference profile ARN in the Resource list, plus bedrock:InvokeModelWithResponseStream, bedrock:GetInferenceProfile and bedrock:GetFoundationModel, with the foundation-model ARNs for the Regions the profile can route to.
4. What trust policy should an Amazon Bedrock agent service role use to limit confused-deputy risk?
Allow bedrock.amazonaws.com to call sts:AssumeRole with conditions aws:SourceAccount set to the account and aws:SourceArn matching arn:aws:bedrock:
5. A fix works in the agent test window but the application, which calls an alias, still fails. Why?
The test window uses the working draft, while an alias points to a numbered version. Prepare the agent, create a new version and update the alias to it.
6. An agent with an attached guardrail fails with access denied only after the guardrail was added. What permission is missing?
bedrock:ApplyGuardrail on the guardrail ARN in the agent service role.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
Ethan: "The role change goes in the same pull request as the model change."
Official references for this guide
- Create a service role for Amazon Bedrock Agents: trust policy, model, knowledge base, guardrail and inference profile statements.
- InvokeAgent API reference: the response stream and its error events.
- Cross-Region inference and the model lifecycle.
Frequently asked questions
What does "Access denied when calling Bedrock" mean in a Bedrock agent?
The agent itself was refused when it called a model or another Bedrock resource. The agent acts through its own service role, so the fix is usually that role’s permissions or the model’s access, not your user’s permissions.
I gave the agent role AdministratorAccess and still get access denied. Why?
Because the most common cause isn’t IAM at all: the account doesn’t have access to the model, for example an Anthropic model whose use case form was never approved. Check model access first, then the role.
How do I fix Bedrock agent access denied after switching models?
The service role the console created is often scoped to the first model’s ARN. Add the new model’s foundation-model ARN (or a wildcard for that provider) to the role’s bedrock:InvokeModel statement, then prepare the agent again.
What permissions does a Bedrock agent service role need?
bedrock:InvokeModel on the model ARN, bedrock:Retrieve and bedrock:RetrieveAndGenerate on any attached knowledge base, s3:GetObject for action group schemas, plus extra actions for inference profiles, guardrails or multi-agent collaboration if you use them.
Does a Bedrock agent need extra permissions for inference profiles?
Yes. Add the inference profile ARN to the model statement and the actions bedrock:InvokeModelWithResponseStream, bedrock:GetInferenceProfile and bedrock:GetFoundationModel. Keep the foundation-model ARNs for the Regions the profile can route to.
What trust policy does the Bedrock agent role need?
It must let bedrock.amazonaws.com assume the role, ideally with aws:SourceAccount set to your account and aws:SourceArn matching your agent ARNs, such as arn:aws:bedrock:us-east-1:ACCOUNT_ID:agent/*.
Why does my agent work in the test window but fail through its alias?
An alias points to a numbered version, not the working draft. After fixing the role or model, prepare the agent, create a new version and point the alias at it.
Do I need to prepare the agent again after changing its role?
Yes, as a habit. Save and Prepare refresh the agent’s configuration; people often see access denied disappear only after doing this, even with no other change.
Can the knowledge base cause access denied in an agent?
Yes. If the role lacks bedrock:Retrieve or bedrock:RetrieveAndGenerate on the knowledge base ARN, or the knowledge base can’t use its own embeddings model, the agent call fails at the knowledge base step. The trace shows which step failed.
How do I see which step of the agent failed?
Call InvokeAgent with enableTrace set to true, or open the trace in the console test window. The trace shows pre-processing, orchestration, knowledge base and post-processing steps, and which one returned the error.
Is "Access denied when calling Bedrock" the same as AccessDeniedException from InvokeModel?
They are related but not the same. AccessDeniedException from your own InvokeModel call is about your credentials. The agent message is about the agent’s service role or the model access it relies on.
Why did my agent suddenly start failing with access denied?
Check whether the model went Legacy: an account that hasn’t used a Legacy model for 15 days may lose access to it. Also check for role changes, a deleted inference profile or a new guardrail the role can’t use.
Does a guardrail need permissions on the agent role?
Yes. If you attach a guardrail to the agent, the role needs bedrock:ApplyGuardrail on that guardrail’s ARN.
Can I use a wildcard for models in the agent role?
Yes, for example arn:aws:bedrock:*::foundation-model/anthropic.* for one provider. Narrow it to specific model ARNs once the agent works.
What is the difference between access denied and "request rate is too high" in agents?
Access denied is a permissions or model-access problem and won’t go away by retrying. Request rate too high is a throttling problem that retries and quota increases fix.
Where do I request model access for Bedrock?
In the Bedrock console under model access, or by calling the model once. Some providers, such as Anthropic, ask for a short use case description before first use.
Revision note. Written November 30, 2026, refering the current Bedrock agent permissions and InvokeAgent. “A chain is only as strong as its weakest link”: the agent’s role, not yours, is usually that link.