Skip to content

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.

asked 2 years ago931 views

1 Answer
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

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.