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 個月前檢視次數 187 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南