Back to Blog
Service Control Policies for AI Governance on AWS
Technical Guide·10 min read·

Service Control Policies for AI Governance on AWS

C

Claw GRC Team

Claw GRC Team

How to use AWS Service Control Policies (SCPs) to enforce AI governance guardrails across your organization, including region restrictions, model access controls, and encryption requirements for SageMaker and Bedrock.

Service Control Policies for AI Governance on AWS

IAM policies tell individual roles what they can do. Service Control Policies tell your entire organization what nobody is allowed to do. That distinction matters for AI governance because the most dangerous misconfigurations are not individual permission mistakes -- they are organizational gaps where any developer in any account can spin up unencrypted SageMaker notebooks, invoke unrestricted foundation models, or disable the CloudTrail logging that your auditors depend on.

SCPs are the only AWS mechanism that creates a hard ceiling on permissions across all accounts in your organization, including accounts you have not created yet. An IAM administrator in a member account cannot override an SCP. A root user in a member account cannot override an SCP. This makes SCPs the foundation of preventive AI governance -- controls that make it impossible to violate compliance requirements, not just detectable after the fact.

This article covers five practical SCP patterns for AI governance, explains the design tradeoffs between deny-list and allow-list approaches, shows how to test SCPs safely, and maps everything to the compliance frameworks your auditors care about. For the broader AWS AI governance framework, see the Complete Guide to AWS AI/ML Governance.


Why SCPs Matter for AI Governance

Consider what happens without SCPs:

A data scientist in a development account creates a SageMaker notebook in ap-southeast-1 because they heard latency is lower. Your compliance program covers us-east-1 and us-west-2. You now have unmonitored ML resources in a region with no CloudTrail data events configured, no Config rules, and no EventBridge remediation rules.

A junior developer invokes an unrestricted foundation model through Bedrock because the default IAM role grants bedrock:InvokeModel on all models. The model produces unfiltered output that includes PII from its training data. Your guardrail configuration only covers the three models you intended to use.

A well-intentioned automation script disables CloudTrail in a sandbox account to reduce costs. Three months of AI workload audit evidence disappears.

SCPs prevent all three scenarios at the organizational level. No IAM policy, no matter how permissive, can override them.


SCP Design Patterns: Deny-List vs. Allow-List

There are two fundamental approaches to SCP design:

Deny-list (blacklist): Start with AWS's default FullAWSAccess SCP and add explicit denials for dangerous actions. This is simpler to implement and less likely to break existing workloads. Most organizations start here.

Allow-list (whitelist): Remove the FullAWSAccess SCP and create policies that explicitly allow only the services and actions your organization needs. This is more secure but significantly more complex and can break workloads that depend on services you forgot to allow.

For AI governance, we recommend a deny-list approach with specific guardrails for ML services. This provides strong preventive controls without the operational risk of accidentally blocking legitimate AI workloads.


SCP Pattern 1: Restrict AI Services by Region

Concentrating AI workloads in approved regions ensures that your compliance monitoring, Config rules, and EventBridge remediation patterns cover all ML resources.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RestrictAIServicesToApprovedRegions",
      "Effect": "Deny",
      "Action": [
        "sagemaker:*",
        "bedrock:*",
        "comprehend:*",
        "rekognition:*",
        "textract:*",
        "translate:*",
        "polly:*",
        "transcribe:*",
        "lex:*",
        "kendra:*"
      ],
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "aws:RequestedRegion": [
            "us-east-1",
            "us-west-2"
          ]
        }
      }
    }
  ]
}

This SCP denies all AI and ML service operations outside of us-east-1 and us-west-2. A developer who tries to create a SageMaker notebook in eu-west-1 or invoke a Bedrock model in ap-southeast-1 will receive an access denied error regardless of their IAM permissions.

Important: Adjust the region list to match where Bedrock supports the models you need. Not all foundation models are available in all regions.

Compliance mapping: NIST 800-53 AC-6 (least privilege -- restricting actions to necessary scope), SOC 2 CC6.1 (logical access controls), ISO 27001 A.8.3 (access restriction).


SCP Pattern 2: Restrict Foundation Model Access

Not every team needs access to every foundation model. Restricting which models can be invoked prevents accidental use of models that have not been approved, tested for compliance, or configured with guardrails.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RestrictBedrockModels",
      "Effect": "Deny",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": "*",
      "Condition": {
        "ForAnyValue:StringNotLike": {
          "bedrock:ModelId": [
            "anthropic.claude-3-5-sonnet*",
            "anthropic.claude-3-5-haiku*",
            "amazon.titan-embed-text-v2*"
          ]
        }
      }
    },
    {
      "Sid": "DenyCustomModelImportWithoutApproval",
      "Effect": "Deny",
      "Action": [
        "bedrock:CreateModelCustomizationJob",
        "bedrock:CreateModelImportJob"
      ],
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "aws:PrincipalOrgID": "${aws:PrincipalOrgID}"
        }
      }
    }
  ]
}

The first statement restricts Bedrock invocations to three approved models. Any attempt to invoke a different model -- whether by mistake or by a compromised credential -- is denied. The second statement prevents custom model imports without organizational approval, protecting against supply chain risks.

Why this matters: Your Bedrock Guardrails configurations are model-specific. If a developer invokes a model that does not have guardrails configured, all your content filtering and PII protection is bypassed. This SCP ensures that only guardrail-protected models are accessible.

Compliance mapping: NIST AI RMF Govern 6.1 (third-party AI risk management), SOC 2 CC6.1 (logical access), ISO 27001 A.5.1 (information security policies).


SCP Pattern 3: Enforce KMS Encryption on All ML Resources

Encryption at rest is a baseline requirement for every compliance framework. This SCP makes it impossible to create unencrypted ML resources anywhere in your organization.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyUnencryptedSageMakerNotebook",
      "Effect": "Deny",
      "Action": "sagemaker:CreateNotebookInstance",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VolumeKmsKeyId": "true"
        }
      }
    },
    {
      "Sid": "DenyUnencryptedSageMakerTraining",
      "Effect": "Deny",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VolumeKmsKeyId": "true"
        }
      }
    },
    {
      "Sid": "DenyUnencryptedSageMakerEndpoint",
      "Effect": "Deny",
      "Action": "sagemaker:CreateEndpointConfig",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VolumeKmsKeyId": "true"
        }
      }
    },
    {
      "Sid": "DenyUnencryptedSageMakerProcessing",
      "Effect": "Deny",
      "Action": "sagemaker:CreateProcessingJob",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VolumeKmsKeyId": "true"
        }
      }
    }
  ]
}

This SCP covers the four most common SageMaker resource types that support volume encryption. Any CreateNotebookInstance, CreateTrainingJob, CreateEndpointConfig, or CreateProcessingJob call that does not specify a KMS key is denied. This is a preventive control -- the unencrypted resource never exists, so there is nothing to detect and remediate after the fact.

Compliance mapping: NIST 800-53 SC-28 (protection of information at rest), SOC 2 CC6.7 (encryption of data), ISO 27001 A.8.24 (use of cryptography).


SCP Pattern 4: Prevent Disabling CloudTrail

CloudTrail is your audit backbone. If someone disables it -- accidentally or intentionally -- you lose the evidence trail that your entire compliance program depends on. This SCP makes CloudTrail immutable.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "PreventCloudTrailDisable",
      "Effect": "Deny",
      "Action": [
        "cloudtrail:StopLogging",
        "cloudtrail:DeleteTrail",
        "cloudtrail:UpdateTrail"
      ],
      "Resource": "arn:aws:cloudtrail:*:*:trail/ai-governance-*",
      "Condition": {
        "StringNotLike": {
          "aws:PrincipalArn": "arn:aws:iam::*:role/CloudTrailAdminRole"
        }
      }
    },
    {
      "Sid": "PreventCloudTrailLakeDelete",
      "Effect": "Deny",
      "Action": [
        "cloudtrail:DeleteEventDataStore",
        "cloudtrail:StopEventDataStoreIngestion"
      ],
      "Resource": "*",
      "Condition": {
        "StringNotLike": {
          "aws:PrincipalArn": "arn:aws:iam::*:role/CloudTrailAdminRole"
        }
      }
    }
  ]
}

Only the dedicated CloudTrailAdminRole can modify or delete trails that match the ai-governance-* naming convention. Nobody else -- not account administrators, not IAM administrators, not automation roles -- can stop logging or delete event data stores. The condition scopes the exception to a single role that should be tightly controlled and monitored.

Compliance mapping: NIST 800-53 AU-9 (protection of audit information), SOC 2 CC7.1 (system monitoring), ISO 27001 A.8.15 (logging).


SCP Pattern 5: Restrict SageMaker Instance Types

Cost governance and security governance overlap. Restricting SageMaker instance types prevents both runaway costs from GPU instances and the use of instance types that do not meet your security requirements (for example, instances without hardware-level encryption support).

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RestrictSageMakerNotebookInstanceTypes",
      "Effect": "Deny",
      "Action": "sagemaker:CreateNotebookInstance",
      "Resource": "*",
      "Condition": {
        "ForAnyValue:StringNotLike": {
          "sagemaker:InstanceTypes": [
            "ml.t3.medium",
            "ml.t3.large",
            "ml.m5.xlarge",
            "ml.m5.2xlarge"
          ]
        }
      }
    },
    {
      "Sid": "RestrictSageMakerTrainingInstanceTypes",
      "Effect": "Deny",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*",
      "Condition": {
        "ForAnyValue:StringNotLike": {
          "sagemaker:InstanceTypes": [
            "ml.m5.xlarge",
            "ml.m5.2xlarge",
            "ml.m5.4xlarge",
            "ml.p3.2xlarge",
            "ml.g5.xlarge",
            "ml.g5.2xlarge"
          ]
        }
      }
    }
  ]
}

Notebooks are restricted to cost-effective CPU instances since most notebook work is exploratory. Training jobs get access to GPU instances but only approved types. If a data scientist requests an ml.p4d.24xlarge (the largest and most expensive GPU instance), the SCP denies it. They must request an exception through your change management process.

Compliance mapping: NIST 800-53 AC-6 (least privilege), SOC 2 CC6.1 (logical access), ISO 27001 A.8.3 (access restriction).


Testing SCPs Safely

SCPs can break production workloads if applied incorrectly. Follow this testing process:

Step 1: Start with a dedicated test OU. Create an organizational unit (OU) that contains only sandbox or development accounts. Apply new SCPs to this OU first.

# Create a test OU for SCP validation
aws organizations create-organizational-unit \
  --parent-id r-root123 \
  --name "SCP-Testing"

# Move a sandbox account into the test OU
aws organizations move-account \
  --account-id 111111111111 \
  --source-parent-id ou-parent123 \
  --destination-parent-id ou-scptest456

Step 2: Use IAM Access Analyzer. Before applying an SCP, use Access Analyzer to validate the policy syntax and check for overly broad denials.

aws accessanalyzer validate-policy \
  --policy-document file://scp-restrict-regions.json \
  --policy-type SERVICE_CONTROL_POLICY

Step 3: Apply with a dry-run period. Attach the SCP to the test OU and monitor CloudTrail for AccessDenied events that would indicate broken workloads.

Step 4: Promote gradually. After successful testing (minimum one week with no unexpected denials), promote the SCP to your development OU, then staging, then production. Never go directly from test to production.


Combining SCPs with IAM for Defense in Depth

SCPs and IAM are complementary, not redundant. They serve different purposes in your AI governance stack:

Layer Mechanism Purpose Who Controls It
Organization SCPs Absolute boundaries -- what nobody can do Cloud platform team
Account IAM policies Role-specific permissions -- what each role can do Account administrators
Resource Resource policies Resource-specific access -- who can access this resource Resource owners
Application Bedrock Guardrails Content-level controls -- what the model can say AI/ML team

A comprehensive AI governance posture uses all four layers. SCPs prevent catastrophic organizational violations. IAM enforces least privilege for individual roles. Resource policies (S3 bucket policies, KMS key policies) restrict access to sensitive data and models. Bedrock Guardrails handle the application-layer content controls that infrastructure policies cannot address.

For a deep dive on IAM policies and network controls for AI workloads, see AWS Cloud Security for AI Compliance.


Compliance Mapping

Compliance Requirement Description SCP Pattern
NIST 800-53 AC-6 Least privilege All patterns -- SCPs enforce minimum necessary access
NIST 800-53 AC-6(1) Authorize access to security functions CloudTrail protection SCP
NIST 800-53 SC-28 Protection of information at rest KMS encryption enforcement SCP
NIST 800-53 AU-9 Protection of audit information CloudTrail immutability SCP
SOC 2 CC6.1 Logical access controls Region restriction, model restriction, instance types
SOC 2 CC6.3 Role-based access All patterns -- organizational boundary on roles
SOC 2 CC6.7 Encryption KMS enforcement SCP
ISO 27001 A.5.1 Information security policies All patterns -- documented and enforced policies
ISO 27001 A.8.3 Access restriction Region restriction, model restriction
ISO 27001 A.8.24 Use of cryptography KMS enforcement SCP

Using Claw GRC for SCP Compliance

Claw GRC audits your SCP configurations and maps them to compliance framework requirements:

Automated evidence collection:

  • SCP policy documents from AWS Organizations (daily snapshots)
  • SCP attachment mappings showing which OUs have which policies
  • CloudTrail events for SCP-denied actions (real-time)
  • Access Analyzer validation results for all active SCPs

Gap detection:

  • Identifies OUs without required AI governance SCPs
  • Detects when SCPs are detached or modified
  • Flags when new accounts are created outside of governed OUs
  • Alerts when SCP exceptions are overly broad

Compliance reporting:

  • Pre-built mappings from SCP patterns to NIST 800-53, SOC 2, and ISO 27001 controls
  • Evidence packages for auditors showing organizational-level preventive controls
  • Drift detection when SCP policies change between audit periods

For the broader governance framework that SCPs support, see the Complete Guide to AWS AI/ML Governance.


Start auditing your AI governance SCPs →

CG

Get started with Claw GRC

AI-native compliance automation. 1,026+ controls. MCP-native. Free workspace, no credit card.

Start Free →