跳至內容

Permission issues while creating knowledge base in bedrock

0

Hi am getting permission issues while creating knowledge base in bedrock.

Error Knowledge base: kb-influencer-test was failed to create. undefined User: arn:aws:iam::1234:user/xxxx@gmail.com is not authorized to perform: iam:CreatePolicyVersion on resource: policy AmazonBedrockS3PolicyForKnowledgeBase_xyz because no identity-based policy allows the iam:CreatePolicyVersion action

Following is the inline policy that is attached to the user. { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "iam:CreatePolicy", "iam:CreatePolicyVersion", "iam:PassRole", "iam:GetPolicy", "iam:GetPolicyVersion", "iam:AttachRolePolicy" ], "Resource": "arn:aws:iam::1234:policy/AmazonBedrockS3PolicyForKnowledgeBase_xyz" } ] }

Any pointers would be appreciated.

已提問 2 年前檢視次數 955 次

1 個回答
2

Hello.

Please try changing the ARN set in the IAM policy as follows.

arn:aws:iam::<Account ID>:policy/service-role/AmazonBedrockS3PolicyForKnowledgeBase_xyz

I checked in my AWS account, and the IAM policy created in the Bedrock knowledge base has the ARN shown above.
a

專家

已回答 2 年前

專家

已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。