Prerequisites for Amazon Bedrock Flows - Amazon Bedrock

Prerequisites for Amazon Bedrock Flows

Before creating a flow, review the following prerequisites and determine which ones you need to fulfill:

  1. Define or create resources for one or more nodes you plan to add to your flow:

  2. To use flows, you must have two different roles:

    1. User role – The IAM role that you use to log into the AWS Management Console or to make API calls must have permissions to carry out flows-related actions.

      If your role has the AmazonBedrockFullAccess policy attached, you don't need to configure additional permissions for this role. To restrict a role's permissions to only actions that are used for flows, attach the following identity-based policy to the IAM role:

      { "Version": "2012-10-17", "Statement": [ { "Sid": "FlowPermissions", "Effect": "Allow", "Action": [ "bedrock:CreateFlow", "bedrock:UpdateFlow", "bedrock:GetFlow", "bedrock:ListFlows", "bedrock:DeleteFlow", "bedrock:ValidateFlowDefinition", "bedrock:CreateFlowVersion", "bedrock:GetFlowVersion", "bedrock:ListFlowVersions", "bedrock:DeleteFlowVersion", "bedrock:CreateFlowAlias", "bedrock:UpdateFlowAlias", "bedrock:GetFlowAlias", "bedrock:ListFlowAliases", "bedrock:DeleteFlowAlias", "bedrock:InvokeFlow", "bedrock:TagResource", "bedrock:UntagResource", "bedrock:ListTagsForResource" ], "Resource": "*" } ] }

      You can further restrict permissions by omitting actions or specifying resources and condition keys. An IAM identity can call API operations on specific resources. If you specify an API operation that can't be used on the resource specified in the policy, Amazon Bedrock returns an error.

    2. Service role – A role that allows Amazon Bedrock to perform actions on your behalf. You must specify this role when creating or updating a flow. You can create a custom AWS Identity and Access Management service role.

      Note

      If you plan to use the Amazon Bedrock console to automatically create a role when you create a flow, you don't need to manually set up this role.