Cannot access bedrock models

0

I am testing the following lab

https://github.com/aws-samples/aurora-postgresql-pgvector/tree/main/02_RetrievalAugmentedGeneration/02_QuestionAnswering_Bedrock_LLMs

I got an error "ValueError: Error raised by inference endpoint: An error occurred (AccessDeniedException) when calling the InvokeModel operation: You don't have access to the model with the specified model ID." when I try streamlit run rag_app.py --server.port 8080

I am using root access also created a separate user with Bedrock full access, both failed with same error.

Please help me

Thanks.

1 回答
1
已接受的回答

Hello.

Please enable model access by following the steps in the document below.
Looking at the code, it seems that "us-west-2" is being used, so try enabling model access using "us-west-2".
https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html#model-access-add

profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
  • Thank you, it worked after enabling in us-west-2

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则