- Newest
- Most votes
- Most comments
Firstly, thanks for your answer. I already had this permission attached to my knowledge base role. I tried attaching the bedrock full access and also the administrator access permission to my role but even those couldn't solve this operation not allowed error. Additionaly for Cohere Embed English model i tried to remove my access to that model and re-enable it. Then i tried to sync the knowledge base i built with the Cohere Embed English but i still got the same error. Remember that i had multiple knowledge bases running without any issue few days ago. But somehow all of them are not working right now. When i try to test them, i get the same error which is:
Invalid input or configuration provided.
Check the input and Knowledge Base configuration and try your request again.
When i try to sync the data source for each of them, i get the same Operation Not Allowed error that i shared before. So I don't think the issue was about the roles because these roles were working just fine before the error. But thanks for your answer again.
To resolve this:
a. Go to the IAM console
b. Find the role mentioned in the error message (arn:aws:iam::<account-id>:role/service-role/<role-name>)
c. Add the necessary permissions to allow the role to use the Bedrock embedding model (amazon.titan-embed-text-v2:0)
You might need to add a policy similar to this:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel"
],
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0"
}
]
}
d. After updating the IAM role permissions, try syncing your data source again.
I would check if what models are used by your process.
In my case, when I saw the error "Invalid input or configuration provided. Check the input and Knowledge Base configuration and try your request again", I went to Bedrock > Knowledge Bases > Select > Data Source > Select and then clicked the "Sync" button. And then, it gave me an error that I was using a model I didn't get the access granted for. After the access has been granted, it worked without error.
Relevant content
- asked a year ago
- asked 2 months ago
When I tried to use "Cohere Embed English" from AWS Console it didn't allow me to do that, so I chose a different Embeddings model. Have you tried a different model, such as "Titan Text Embeddings v2"