AWS Builder Center

One SCP to Govern Them All: Control AI models in Bedrock

Learn how to implement centralized AI governance in AWS by using SCPs to enforce an allowlist of approved Amazon Bedrock models across your organization.

TL;DR

Controlling which LLM models can be accessed via Amazon Bedrock is an important governance control. Organizations need to ensure that employees and workloads can only use models that have been reviewed and vetted. One approach to enforce this centrally across your AWS organization is to use an SCP.

Intro

Amazon Bedrock is one of the core AI services in AWS, providing access to the LLM models we know and love through a single service. Whether you plan to use GPT, Claude or Gemini (among other models), AWS Bedrock has you covered.  
Bedrock exposes two inference endpoints: Runtime and Mantle. We won't go into the specifics of each endpoint in this post, but I will leave you a link  here  in case you want to know more about them.
What you need to keep in mind is that both endpoints can be used to invoke models, and most importantly, their access is controlled via two different sets of IAM permissions.
For example:
  • Bedrock Runtime uses the  bedrock  prefix
  • Bedrock Mantle uses the  bedrock-mantle  prefix

The problem

AI sprawl is a growing concern for organizations, as employees just turn to available LLMs to improve their productivity.
However, using unsanctioned models can introduce risks across several areas such as security, privacy, data residency, regulatory compliance and cost management.  
AI governance has since become a fundamental part in the organization's AI adoption journey. Organizations need to establish clear policies that communicate to employees:
  1. Which models are approved and for which use cases, usually through an AI allowlist
  1. Which data can be entered, which usually involves no PII (Personally Identifiable Information) and no customer data.
Controlling model access is not about hindering productivity or slowing employees down. It's about ensuring that AI adoption is secure, compliant, cost-effective, and most importantly, aligned with the organization's business goals and risk appetite.
With all this in mind, let's explore how to implement an AI allowlist in AWS.

The Solution

One cost-effective approach to enforce this allowlist is via the implementation of an org-wide SCP (Service Control Policy) that controls which models can be invoked through the two Bedrock endpoints.
The SCP is a great control because it provides a centralized guardrail that admins in member accounts cannot override by granting additional permissions. You simply configure it in your management account, attach it to your AWS org (root level), and then go to sleep peacefully.

Understanding the two endpoints

As mentioned before, each Bedrock endpoint has a different service prefix in IAM.
For instance, someone invoking a model via the Bedrock Runtime endpoint would need the  bedrock:InvokeModel  permssion. Streaming inference would require  bedrock:InvokeModelWithResponseStream 
In Mantle, somebody invoking a model would require the  bedrock-mantle:CreateInference  permission.
Because they have different prefixes in IAM, controlling one endpoint is not enough as someone could be restricted to invoke Haiku in the Runtime one, but allowed to use any model via the Mantle one because you are not controlling it.
Therefore, you need to enforce your model access policy across both endpoints.

Best practices

1. Block the endpoint you are not using

If your organization only use one of the endpoints, just block the other one completely.
This ensures that even if a principal in a member account have permissions to invoke a model via that endpoint, it will be blocked by the SCP.
For instance, let's say your org only operates with the Runtime endpoint, then block Mantle as follows:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyBedrockMantleAccess",
      "Effect": "Deny",
      "Action": [
        "bedrock-mantle:*"
      ],
      "Resource": "*"
    }
  ]
}

This SCP blocks every single operation in Bedrock Mantle across your organization. Anyone trying to use it, will get a permissions denied error

2. Implement an allowlist

Our goal is to allow the approved models while blocking everything else. To achieve that, we use the  NotResource  element and include the approved models, both the foundational models and the inference profiles.
 NotResource  is helpful here because it saves us from having to maintain a list of blocked models. Model providers are releasing new models and versions at an incredible pace, so having to constantly update the SCP to cover the new ones is a burden.
Following the previous example about only using the Runtime endpoint, an SCP controlling that only Claude Sonnet 4.6 can be invoked would look like:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyAllBedrockModelsExceptApproved",
      "Effect": "Deny",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "NotResource": [
        "arn:aws:bedrock:\*::foundation-model/anthropic.claude-sonnet-4.6",
        "arn:aws:bedrock:\*:\*:inference-profile/us.anthropic.claude-sonnet-4-6"
      ]
    }
  ]
}


3. Test, test and test your SCP

Bear in mind that SCPs have the power to disrupt production services if not carefully tested. Before implementing one at the org-level (root), attach it to a testing account or OU and perform both positive and negative testing to verify it doesn't impact your production environment.

4. Understand SCPs

Remember that SCPs are just another layer in your defense-in-depth strategy. They control the maximum permissions available to principals in member accounts, but they don't apply to your management account or to service-linked roles. But why would you be running AI workloads in your management account in the first place?
In any case, pair SCPs with other security controls such as IAM least privilege, monitoring, and data protection mechanisms.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article