- Newest
- Most votes
- Most comments
Hello.
This is probably a problem that you cannot solve on your own, so you will need to contact AWS support.
Please contact us by opening a case under "Account and billing" at the URL below.
"Account and billing" inquiries are free of charge.
https://console.aws.amazon.com/support
Based on your description, there are several potential causes for the "ValidationException: Operation not allowed" error when trying to invoke Amazon Bedrock models:
- Model Access Not Enabled: Even with the correct IAM permissions, you need to explicitly request access to each foundation model you want to use. This is a separate process from setting up IAM permissions.
- Navigate to the Amazon Bedrock console
- Go to "Model access" under "Bedrock configurations" in the left navigation pane
- Click on "Modify model access"
- Select the specific models you want to use
- Submit your request and wait for approval (usually quick but may take several minutes)
-
Form Completion Required: For some models (like Anthropic's Claude), you may need to provide use case details by filling out a form before access is granted.
-
Regional Availability: Ensure you're using a region where the specific model is available. Not all models are available in all regions. For example, some models might be available in us-west-2 but not in us-east-1.
-
Service Control Policies (SCPs): If your account is part of an AWS Organization, there might be SCPs restricting access to Bedrock services or specific models.
-
Account Authorization: Your account might not be authorized to access certain models. This could require contacting AWS Support for further details.
Since you mentioned that another free tier account works with the same code, the most likely issue is that you haven't completed the model access request process for your current account. Even though you can list the models with list_foundation_models, you still need to explicitly request access to use them.
After requesting access, check that the status changes to "Access granted" or "Available to request" before attempting to invoke the models again.
Sources
Amazon Bedrock foundational Models Access Issue | AWS re:Post
i'm not able to invoke aws bedrock model locally | AWS re:Post
Troubleshooting Amazon Bedrock API Error Codes - Amazon Bedrock
Bedrock model access | AWS re:Post
answered 8 months ago
The model access page has been retired by AWS and access to all models has been enabled by default. The Root user is not associated with any organisation and there is no SCP. Another solution mentioned that starting an EC2 instance helps, but i have already done that along with an RDS Instance and it did not resolve the issue.
Relevant content
- AWS OFFICIALUpdated a year ago

I have created a Support Ticket under "Technical" with the Root User and have not received any response from the AWS Support Team. My Ticket is under the category of "Bedrock". This is the Ticket ID 176243389100133. Please look into it.