bedrock-kb-rag-workshop icon indicating copy to clipboard operation
bedrock-kb-rag-workshop copied to clipboard

Error when creating knowledge base

Open intgpath opened this issue 1 year ago • 3 comments

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

intgpath avatar Dec 07 '23 03:12 intgpath

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 avatar Mar 25 '24 14:03 minorun365

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

minorun365 avatar Mar 25 '24 14:03 minorun365

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

riolaf05 avatar May 27 '24 12:05 riolaf05