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?

asked a month ago160 views
1 Answer
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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile pictureAWS
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions