AWS Bedrock Right pb when testing prompt flow

0

In AWS Bedrock when I try to test the Prompt flow I have an error message: Enter image description here Where can I check what permission I need to make it work?

已提问 2 个月前189 查看次数
1 回答
2

Hello.

When I set up a prompt flow in my AWS account and checked the automatically created IAM role, the following IAM policy was attached.
Therefore, I think it is necessary to configure the IAM role to at least allow "bedrock:GetFlow" and "bedrock:InvokeModel".

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "bedrock:GetFlow",
            "Resource": [
                "arn:aws:bedrock:us-east-1:111111111111:flow/YYYYYYYYYY"
            ]
        }
    ]
}
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "bedrock:InvokeModel",
            "Resource": [
                "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-text-premier-v1:0"
            ]
        }
    ]
}
profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
profile pictureAWS
专家
已审核 2 个月前

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

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

回答问题的准则