bedrock:InvokeModel

Read

bedrock:InvokeModel is a Read access-level action in the bedrock service. Grants permission to invoke the specified Bedrock model to run inference using the input provided in the request body

Resource types

ARNs that bedrock:InvokeModel can be scoped to in an IAM policy.

arn:${Partition}:bedrock:${Region}:${Account}:application-inference-profile/${ResourceId} required
application-inference-profile
arn:${Partition}:bedrock:${Region}:${Account}:async-invoke/${ResourceId} required
async-invoke
arn:${Partition}:bedrock:${Region}:${Account}:marketplace/model-endpoint/all-access required
bedrock-marketplace-model-endpoint
arn:${Partition}:bedrock:${Region}:${Account}:custom-model-deployment/${ResourceId} required
custom-model-deployment
arn:${Partition}:bedrock:${Region}:${Account}:default-prompt-router/${ResourceId} required
default-prompt-router
arn:${Partition}:bedrock:${Region}::foundation-model/${ResourceId} required
foundation-model
arn:${Partition}:bedrock:${Region}:${Account}:imported-model/${ResourceId} required
imported-model
arn:${Partition}:bedrock:${Region}:${Account}:inference-profile/${ResourceId} required
inference-profile
arn:${Partition}:bedrock:${Region}:${Account}:project/${ResourceId} required
project
arn:${Partition}:bedrock:${Region}:${Account}:prompt-router/${ResourceId} required
prompt-router
arn:${Partition}:bedrock:${Region}:${Account}:provisioned-model/${ResourceId} required
provisioned-model
arn:${Partition}:bedrock::${Account}:system-tool/${ResourceId} required
system-tool

Condition keys

Keys you can use in the Condition block of a policy that grants bedrock:InvokeModel.

aws:RequestTag/${TagKey} String

Filters access by creating requests based on the allowed set of values for each of the mandatory tags

aws:TagKeys ArrayOfString

Filters access by creating requests based on the presence of mandatory tags in the request

bedrock:GuardrailIdentifier ARN

Filters access by the GuardrailIdentifier containing the GuardrailArn or the GuardrailArn:NumericVersion

bedrock:InferenceProfileArn ARN

Filters access by the specified inference profile

bedrock:ModelArn ARN

Filters access by the model that a stateful invocation runs, on the authorization whose resource is the project

bedrock:ProjectArn ARN

Filters access by the project that a stateful invocation belongs to, on authorizations whose resource is the inference target it runs

bedrock:PromptRouterArn ARN

Filters access by the specified prompt router

bedrock:ServiceTier String

Filters access by the specified ServiceTier

aws:ResourceTag/${TagKey} String

Filters access by having actions based on the tag value associated with the resource

Example IAM policy

A minimal policy that allows bedrock:InvokeModel. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowBedrockInvokeModel",
      "Effect": "Allow",
      "Action": "bedrock:InvokeModel",
      "Resource": "*"
    }
  ]
}

Related actions in bedrock

View all bedrock actions →