Ir para o conteúdo

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.

feita há 2 anos952 visualizações

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

ESPECIALISTA

respondido há 2 anos

ESPECIALISTA

avaliado há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.