aws-samples / bedrock-kb-rag-workshop

Bedrock Knowledge Base and Agents for Retrieval Augmented Generation (RAG)
MIT No Attribution
42 stars 10 forks source link

Error when creating knowledge base #1

Open intgpath opened 9 months ago

intgpath commented 9 months ago

Getting this error when i tried creating knowledge base

Failed to generate Amazon Opensearch Serverless vector database: Policy json is invalid, error: [$[0].Principal[1]: does not match the regex pattern ^saml/[0-9]{12}/[a-z][a-z0-9-]+/(user|group)/.{1,60}$, $[0].Principal[1]: does not match the regex pattern ^arn:(?:aws|aws-cn|aws-us-gov):iam::\d{12}:(user|role)(/[\w+=,.@-]+)/[\w+=,.@-]{1,64}$, $[0].Principal[1]: does not match the regex pattern ^arn:(?:aws|aws-cn|aws-us-gov):sts::\d{12}:assumed-role/[\w+=,.@-]{1,64}/([\w+=,.@-]{2,64}|[\w+=,.@-]{0,63}\)$]

The knowledge base storage configuration provided is invalid... Request failed: [security_exception] all shards failed

minorun365 commented 5 months ago

Me too. I wonder why such error occurs even when I tried to create brand-new knowledge bases with default settings of auto creation for AOSS collection.

minorun365 commented 5 months ago

I solved this issue by signing out from the management console and re-sign in. It may be bug of knowledge bases console...

riolaf05 commented 3 months ago

I'm having the same error even creating the knowledge base from the aws console ..