Skip to content
Cloud Governance Tools

Deny access outside approved Regions

Deny access outside approved Regions is an AWS guardrail written in service control policies. Denies every action requested in a Region outside the approved list (eu-central-1 and eu-west-1 in the example), with a NotAction list that exempts global services, unless the caller is the privileged role.

More region and residency guardrails ยท About Service control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "NotAction": [
        "a4b:*",
        "acm:*",
        "aws-marketplace-management:*",
        "aws-marketplace:*",
        "aws-portal:*",
        "budgets:*",
        "ce:*",
        "chime:*",
        "cloudfront:*",
        "config:*",
        "cur:*",
        "directconnect:*",
        "ec2:DescribeRegions",
        "ec2:DescribeTransitGateways",
        "ec2:DescribeVpnGateways",
        "fms:*",
        "globalaccelerator:*",
        "health:*",
        "iam:*",
        "importexport:*",
        "kms:*",
        "mobileanalytics:*",
        "networkmanager:*",
        "organizations:*",
        "pricing:*",
        "route53:*",
        "route53domains:*",
        "route53-recovery-cluster:*",
        "route53-recovery-control-config:*",
        "route53-recovery-readiness:*",
        "s3:GetAccountPublic*",
        "s3:ListAllMyBuckets",
        "s3:ListMultiRegionAccessPoints",
        "s3:PutAccountPublic*",
        "shield:*",
        "sts:*",
        "support:*",
        "trustedadvisor:*",
        "waf-regional:*",
        "waf:*",
        "wafv2:*",
        "wellarchitected:*"
      ],
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "aws:RequestedRegion": [
            "eu-central-1",
            "eu-west-1"
          ]
        },
        "ArnNotLike": {
          "aws:PrincipalARN": "arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]"
        }
      }
    }
  ]
}
Blocks
Denies every action requested in a Region outside the approved list (eu-central-1 and eu-west-1 in the example), with a NotAction list that exempts global services, unless the caller is the privileged role.
Breaks
Global services missing from the exemption list break: the README warns the example might not include all of the latest global AWS services or operations. (source)
Test before applying
As for every Service control policies guardrail: how to test before enforcing
Mechanism
Service control policies (SCPs): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

What the policy text names

It names 42 actions or patterns: a4b:*, acm:*, aws-marketplace-management:*, aws-marketplace:*, aws-portal:*, budgets:*, ce:*, chime:*, and more. Its conditions test aws:RequestedRegion, aws:PrincipalARN.

What the source says

aws:RequestedRegion (read 10 Nov 2026).

On what it breaks: "This example might not include all of the latest global AWS services or operations."

Sources

  1. Deny access outside approved Regions, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.