AWS Builder Center
Enforce org-wide AI governance controls with EU cross-region inference

Enforce org-wide AI governance controls with EU cross-region inference

Company-wide AI governance controls through Amazon Bedrock Guardrails with EU-only CRIS across an AWS organization takes five resources in the organization's management account and one identity policy per member role. This article walks through an end-to-end setup in depth using Terraform.

To enforce  Amazon Bedrock Guardrails  with European Union (EU) cross-region inference (CRIS) across your AWS organization, you need a  BEDROCK_POLICY  in  AWS Organizations  and resource-based policies (RBPs) on the guardrail and on its guardrail profile in four destination regions. Attach all of these policies through the source AWS Region from which model invocation calls are made.
This article walks through such a setup for one primary region,  eu-central-1 , using Terraform, concluding in three example calls that prove enforcement works.

How organization-level enforcement works

With  organization-level enforcement , you define a Bedrock guardrail once in your management account. A  BEDROCK_POLICY  then applies it to every  Converse  and  InvokeModel  API call in the targeted member accounts. Callers don't reference the guardrail in their code; Bedrock adds it to each model invocation automatically.
EU customers with geographical residency requirements can use  cross-region inference  (CRIS) to route AI model inference requests across EU-only AWS Regions behind one inference profile. Bedrock Guardrails support CRIS through their own guardrail profile,  eu.guardrail.v1:0 . Combining organization-level enforcement with CRIS takes five resources in the management account:
  1. A guardrail with CRIS enabled, and a numbered version. An organizations policy can't reference a  DRAFT  version.
  1. An RBP on the guardrail that lets  AWS Identity and Access Management  (IAM) principals in the organization call  GetGuardrail  and  ApplyGuardrail .
  1. An RBP on the guardrail profile in every destination region, granting  ApplyGuardrail  to IAM principals in the organization.
  1. A  BEDROCK_POLICY  that enforces the guardrail version in  eu-central-1 .
  1. An attachment of that policy to the organization root, an organizational unit (OU), or an AWS account.
Member accounts need no resource policies of their own. Their calling principals only need an identity-based policy (IBP) that allows  bedrock:ApplyGuardrail , besides AI model permissions.

Every profile policy goes through the source region

The Bedrock guardrail profile exists in each destination AWS Region under its own ARN, for example  arn:aws:bedrock:eu-west-1:111122223333:guardrail-profile/eu.guardrail.v1:0 . My initial attempt at this setup attached each profile's RBP through the endpoint of the destination region in its ARN. Every call succeeded, but member calls failed with  AccessDeniedException: The provided resource ARN is from a different account. 
Bedrock keeps guardrail profile RBPs in the region whose endpoint receives AI model invocation calls, and it checks cross-account guardrail access from the guardrail's source region. The correct approach therefore is to attach all profile policies through  eu-central-1 , even though three of the profile ARNs name other regions. The  resource-based policies for guardrails  page documents this.
From  eu-central-1 ,  eu.guardrail.v1:0  routes to four AWS Regions:  eu-central-1 ,  eu-west-1 ,  eu-west-3 , and  eu-north-1 . Check the current list in  supported regions for cross-region guardrail inference  before you deploy.

Prerequisites

Warning: The following steps include changes to organization-wide governance controls. Bedrock model invocation in the targeted organization root, OU, or member account will be denied unless the caller is correctly allowed to apply and meet enforced guardrails.
If you have a development organization available, verify this setup there first; otherwise, make sure to attach the Bedrock organizations policy in Step 4 only to a dedicated non-prod OU and test thoroughly before widening the scope.
You need access to your organization's management account, have all organization features enabled, and a member account in a non-production OU for testing. I tested with Terraform 1.16, the  hashicorp/aws  provider 6.70,  hashicorp/awscc  1.107 and AWS CLI v2.
Enable the  BEDROCK_POLICY  policy type on your organization root once:
ROOT=$(aws organizations list-roots --query 'Roots[0].Id' --output text)
aws organizations enable-policy-type --root-id "$ROOT" --policy-type BEDROCK_POLICY
If you restrict accessible AWS Regions in your AWS organization using service control policies (SCPs), your SCPs must allow Bedrock model inference in every destination region.
With the  AWS Control Tower  region-deny control  CT.MULTISERVICE.PV.1 , add  bedrock:Invoke*  and  bedrock:ApplyGuardrail  to its  ExemptedActions , as described in  Enable Amazon Bedrock cross-Region inference in multi-account environments .

Deploy the setup with Terraform

As of the time of writing, Bedrock resource policies are only available in the  awscc  Terraform provider, which uses the  AWS Cloud Control API .
terraform {
required_providers {
aws = { source = "hashicorp/aws", version = ">= 6.0" }
awscc = { source = "hashicorp/awscc", version = ">= 1.107" }
}
}

provider "aws" {
region = "eu-central-1"
}

provider "awscc" {
region = "eu-central-1"
}

data "aws_caller_identity" "current" {}
data "aws_organizations_organization" "current" {}

locals {
account_id = data.aws_caller_identity.current.account_id
org_id = data.aws_organizations_organization.current.id
profile_arns = {
for r in ["eu-central-1", "eu-west-1", "eu-west-3", "eu-north-1"] :
r => "arn:aws:bedrock:${r}:${local.account_id}:guardrail-profile/eu.guardrail.v1:0"
}
}

Step 1: Create the guardrail and a version

This example uses one content filter, so you can test enforcement with an obviously violating prompt. Replace it with your own policies, but leave out automated reasoning checks: enforcement doesn't support them yet.
resource "aws_bedrock_guardrail" "this" {
name = "org-enforced-guardrail"
blocked_input_messaging = "Your input was blocked by the organization guardrail."
blocked_outputs_messaging = "The response was blocked by the organization guardrail."

cross_region_config {
guardrail_profile_identifier = local.profile_arns["eu-central-1"]
}

content_policy_config {
filters_config {
type = "HATE"
input_strength = "HIGH"
output_strength = "HIGH"
}
}
}

resource "aws_bedrock_guardrail_version" "this" {
guardrail_arn = aws_bedrock_guardrail.this.guardrail_arn
}

Step 2: Share the guardrail with the organization

Members need  GetGuardrail  as well as  ApplyGuardrail  permissions. Without it, their calls fail with  This guardrail does not exist .  Principal = "*"  with the  aws:PrincipalOrgID  condition applies this policy to all IAM principals in your AWS organization, as the documented pattern for organization-wide sharing.
resource "awscc_bedrock_resource_policy" "guardrail" {
resource_arn = aws_bedrock_guardrail.this.guardrail_arn
policy_document = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Principal = "*"
Action = ["bedrock:GetGuardrail", "bedrock:ApplyGuardrail"]
Resource = aws_bedrock_guardrail.this.guardrail_arn
Condition = { StringEquals = { "aws:PrincipalOrgID" = local.org_id } }
}]
})
}

Step 3: Share the guardrail profile in every destination region

This is the set of resources that must be created in the source region from which AI model invocation is made. The for_each  attaches all four policies through  eu-central-1 .
resource "awscc_bedrock_resource_policy" "profile" {
for_each = local.profile_arns
resource_arn = each.value
policy_document = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Principal = "*"
Action = ["bedrock:ApplyGuardrail"]
Resource = each.value
Condition = { StringEquals = { "aws:PrincipalOrgID" = local.org_id } }
}]
})
}
Guardrail RBPs accept only a few statement patterns. To limit guardrail access to a specific OU in your organization, use this pattern with an  aws:PrincipalOrgPaths  condition to both policies  as documented here .

Step 4: Enforce the guardrail with a BEDROCK_POLICY

Once this organizations policy is attached, every call from an IAM principal that can't apply the guardrail will be denied. Uninterrupted access therefore depends on the RBPs being created first.
resource "aws_organizations_policy" "bedrock" {
name = "org-enforced-guardrail"
type = "BEDROCK_POLICY"

content = jsonencode({
bedrock = {
guardrail_inference = {
"eu-central-1" = {
config_1 = {
identifier = {
"@@assign" = "${aws_bedrock_guardrail.this.guardrail_arn}:${aws_bedrock_guardrail_version.this.version}"
}
model_enforcement = {
included_models = { "@@assign" = ["ALL"] }
excluded_models = { "@@assign" = [] }
}
}
}
}
}
})
}

resource "aws_organizations_policy_attachment" "bedrock" {
policy_id = aws_organizations_policy.bedrock.id
target_id = "ou-exampleroot-exampleou" # your root, OU or account ID
}

Step 5: Allow member account roles to apply the guardrail

In each AWS member account, attach this IBP to all IAM roles that invoke AI models in Bedrock. These roles need  bedrock:ApplyGuardrail  on the guardrail and on all four profile ARNs, next to their existing model access. I tested three variants with a fresh role. With model access only, every call was denied on  bedrock:ApplyGuardrail . With the guardrail ARN alone, calls were denied on the profile in whichever AWS Region the evaluation was routed to.
variable "guardrail_arn" {
description = "ARN of the enforced guardrail in the management account"
type = string
}

variable "profile_arns" {
description = "Guardrail profile ARNs for all destination regions"
type = list(string)
}

resource "aws_iam_policy" "apply_org_guardrail" {
name = "bedrock-apply-org-guardrail"
policy = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Action = ["bedrock:ApplyGuardrail"]
Resource = concat([var.guardrail_arn], var.profile_arns)
}]
})
}

Verify enforcement from a member account

Test the below from a member account in a non-production OU before you target production. To see which guardrail is in effect there, run  aws organizations describe-effective-policy --policy-type BEDROCK_POLICY --target-id <member-account-id>  from the member account. Then run three calls with your member IAM role:
# 1. The member can apply the central guardrail. Expected: "NONE".
aws bedrock-runtime apply-guardrail --region eu-central-1 \
--guardrail-identifier <guardrail_arn> --guardrail-version 1 \
--source INPUT --content '[{"text":{"text":"hello"}}]' --query action

# 2. A normal call without any guardrailConfig succeeds. Expected: "end_turn".
aws bedrock-runtime converse --region eu-central-1 \
--model-id eu.anthropic.claude-sonnet-5-5 \
--messages '[{"role":"user","content":[{"text":"hello"}]}]' --query stopReason

# 3. A violating prompt is blocked. Expected: "guardrail_intervened".
aws bedrock-runtime converse --region eu-central-1 \
--model-id eu.anthropic.claude-sonnet-5-5 \
--messages '[{"role":"user","content":[{"text":"<a prompt your guardrail blocks>"}]}]' \
--query stopReason
In my test, the third call returned the guardrail's blocked-input message and used 0 input and 0 output tokens. The member never explicitly referenced the guardrail, but Bedrock automatically enforced it and evaluated the input before the model ran.
If the first call fails with  The provided resource ARN is from a different account , read the guardrail profile RBPs from your  eu-central-1  source region:
aws bedrock get-resource-policy --region eu-central-1 \
--resource-arn arn:aws:bedrock:eu-west-1:111122223333:guardrail-profile/eu.guardrail.v1:0
An empty  {}  means the guardrail profile RBP was attached through the wrong AWS Region - see section "Every profile policy goes through the source region" above.

Scope: auto-enforcement applied for 1 region

The  BEDROCK_POLICY  created in this article covers AI model calls sent to the service's  eu-central-1  endpoint, including CRIS that routes from there into other EU regions. A call sent directly to another AWS Region's endpoint, for example  eu-west-1 , uses that region's policy entry. Without an entry for that region, no guardrail will be enforced on the call. If your teams invoke AI models in Bedrock in multiple AWS Regions, create a guardrail in each of them and add a matching entry to the organizations policy, as the  guardrail enforcement documentation  describes.
Every enforced call is billed for guardrail evaluation in addition to the model's input and output tokens. See  Amazon Bedrock pricing  for pricing details.

Clean up

Run  terraform destroy  in the management account. It removes the policy attachment and organizations policy, and deletes the RBPs and the guardrail. Destroying lifts enforcement from the target accounts. Remove the member IAM policy we created from each member account separately.

Conclusion

Enforcing company-wide AI governance controls through Amazon Bedrock Guardrails with EU-only CRIS across an AWS organization takes five resources in the management account and one identity-based policy per member IAM role. With that in place, both  Converse  and  InvokeModel  AI model calls from member accounts (in our example in  eu-central-1 ) run through one central guardrail with no changes to application code required.
Further reading:
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