bedrock-kb-rag-workshop
bedrock-kb-rag-workshop copied to clipboard
Error when creating knowledge base
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
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.
I solved this issue by signing out from the management console and re-sign in. It may be bug of knowledge bases console...
I'm having the same error even creating the knowledge base from the aws console ..