AmazonDataZoneBedrockFMConsumptionRole - Amazon SageMaker Unified Studio

AmazonDataZoneBedrockFMConsumptionRole

A consumption role is required for each Amazon Bedrock model that you want to enable in the playground for non-builders. Amazon SageMaker Unified Studio can create a consumption role per model by default or you have the option to configure a single existing consumption role for all models.

The AmazonDataZoneBedrockFMConsumptionRole has the AWS policy: AmazonDataZoneBedrockModelConsumptionPolicy attached.

The default AmazonDataZoneBedrockFMConsumptionRole has the following inline policy attached:

JSON
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowInferenceProfileToInvokeFoundationModels", "Effect": "Allow", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream" ], "Resource": [ "arn:aws:bedrock:us-east-1::foundation-model/{{modelId}}" ], "Condition": { "ArnLike": { "bedrock:InferenceProfileArn": "arn:aws:bedrock:*:111122223333:application-inference-profile/*" } } } ] }

The default AmazonDataZoneBedrockFMConsumptionRole has the following trust policy attached:

JSON
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "datazone.amazonaws.com" }, "Action": [ "sts:AssumeRole", "sts:SetContext" ], "Condition": { "StringEquals": { "aws:SourceAccount": "{{accountId}}" } } } ] }