跳至内容

bedrock agent permission error

1

Enter image description here

已提问 2 年前1099 查看次数
2 回答
2
已接受的回答

Hi,

You should follow the guidance of https://docs.aws.amazon.com/bedrock/latest/userguide/agents-permissions.html

It will give sample policies that you can reuse in your case.

In particular, pay attention to the trust policy (also on this page) that you must have in your role to grant access to the Bedrock agent:

{
    "Version": "2012-10-17",
    "Statement": [{
        "Effect": "Allow",
        "Principal": {
            "Service": "bedrock.amazonaws.com"
        },
        "Action": "sts:AssumeRole",
        "Condition": {
            "StringEquals": {
                "aws:SourceAccount": "${account-id}"
            },
            "ArnLike": {
                "AWS:SourceArn": "arn:aws:bedrock:${region}:${account-id}:agent/*"
            }
        }
    }]
}

Best

Didier

专家
已回答 2 年前
专家
已审核 2 年前
专家
已审核 2 年前
专家
已审核 2 年前
1

This error suggests the AmazonBedrockExecutionRoleForAgents role does not have permission to interact with the Amazon Bedrock service.

To troubleshoot:

  • Review the policies attached to the role. You can use the AmazonBedrockFullAccess policy to grant the required permissions.
  • If you have applied any resource-based policies to your Bedrock models, ensure they allow access from the AmazonBedrockExecutionRoleForAgents role.
AWS
专家
已回答 2 年前

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

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