- Newest
- Most votes
- Most comments
The "Operation not allowed" or "Your account is not authorized to perform this action" error you're encountering with Amazon Bedrock batch jobs is a known issue that several users have reported.
Based on the information provided, here are some potential causes and solutions:
-
Account-level restrictions: Even though you have access to the Titan Text Embeddings v2 model for real-time inference (InvokeModel), your account might not have been granted access to batch inference capabilities. This is separate from model access permissions.
-
Input format issues: For embedding models like Titan Text Embeddings v2, your input file needs to have a specific format. Make sure your JSONL file contains an "input_text" field with the text you want to embed. For example:
{"input_text": "Your text to embed here"}
Unlike other models, embedding models don't require a "prompt_id" field.
-
IAM permissions: Double-check that both your user role and the service role have the necessary permissions. The service role needs permissions for bedrock:CreateModelInvocationJob, bedrock:InvokeModel, and S3 read/write access.
-
Support case: As the error message suggests, this might be a limitation that requires AWS Support intervention. Since you mentioned you've already opened a support ticket, you might need to wait for their response as this could be related to account-level settings that only AWS can modify.
-
Try a different region: If possible, you could try running the batch job in a different region to see if the issue is region-specific.
Unfortunately, this appears to be an issue that might require AWS Support to resolve if all your configurations are correct. The "Operation not allowed" error is often related to account-level restrictions rather than configuration problems.
Sources
Amazon Bedrock batch job: Validation Error: Operation Not Allowed | AWS re:Post
Build a serverless Amazon Bedrock batch job orchestration workflow using AWS Step Functions | Artificial Intelligence
AWS Bedrock Batch Inference Operation Not Allowed | AWS re:Post
Relevant content
- asked a year ago
- asked 8 months ago
- AWS OFFICIALUpdated 4 months ago
Also FWIW there doesn't seem to be a CloudTrail trace for these errors when I tried to create the batch job.