내용으로 건너뛰기

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년 전950회 조회

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.