Skip to content

Getting Operation not allowed on accessing on any model services on AWS Bedrock

0

Hello

I am getting Operation not allowed on using any of the models on AWS Bedrock Playgroup or in my code using AWS services.

There is no specific error its just Operation not allowed. what can we be the cause for this.

Please advise.

Best Regards Gurpreet

asked 10 months ago430 views

2 Answers
0

Based on your description of receiving "Operation not allowed" when trying to use AWS Bedrock models, there are several potential causes for this issue:

  1. 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
  • Click on "Modify model access"
  • Select the specific models you want to use
  • Submit your request and wait for approval
  1. Account Authorization: Your AWS account might have restrictions on using Bedrock. Some accounts require additional verification before being granted access to Bedrock services.

  2. 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.

  3. Regional Availability: Ensure you're using a region where the specific model is available. Not all models are available in all regions.

  4. AWS Organizations Marketplace Restrictions: If you're using AWS Organizations, check if central marketplace is blocking access. You may need to add the product to marketplace as an approved product.

If you've checked all these potential causes and still encounter the issue, you'll likely need to contact AWS Support. You can open a case under "Account and billing" (which is free of charge) to request assistance with Bedrock access. AWS Support can verify if there are any account-level restrictions or if additional information is needed to grant you access to Bedrock services.
Sources
Unable to invoke any Amazon Bedrock models — “ValidationException: Operation not allowed” despite full permissions | AWS re:Post
Unable to request any model access in AWS bedrock service | AWS re:Post
AWS Bedrock Batch Inference Operation Not Allowed | AWS re:Post

answered 10 months ago

0

Hello.

The answer below may be helpful.
The answer is not in English, but it seems that Bedrock is blocked until the credit card charge can be successfully made.
Therefore, please check whether billing is being processed properly using the credit card linked to your AWS account.
https://repost.aws/ja/questions/QULXR6KB3KTmGN-3J3maUauA/validationexception-operation-not-allowed-when-invoking-amazon-bedrock-model-in-playground

Also, since there may be other issues besides those mentioned above, please try opening a case with AWS Support under "Account and billing" and inquiring about it.
"Account and billing" inquiries are free of charge.
https://console.aws.amazon.com/support

EXPERT

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.