AWS Service Control Policies (SCPs)
Overview
Service Control Policies (SCPs) are JSON policy documents attached to the Root, Organizational Units (OUs), or specific accounts in AWS Organizations that specify the maximum permissions available to IAM entities (users, roles) within those accounts.
Evaluation Logic & Behavior
- Guardrail, Not Grant: An SCP never grants permissions; it only specifies an allowlist or denylist boundary. To perform an action, the principal must have both an explicit IAM allow AND be allowed by all applicable SCPs in its hierarchy.
- Explicit Deny Precedence: An explicit
Denyin an SCP at any higher level (Root or OU) overrides anyAllowat lower levels or in account IAM policies. - Inheritance: Policies applied to an OU cascade downward to all nested child OUs and member accounts.
- Management Account Immunity: SCPs do NOT affect principals or the root user in the AWS Organizations Management Account.
Critical SAP-C02 Use Cases
- Region Restriction: Denying all actions outside approved AWS regions (
aws:RequestedRegioncondition key) while exempting global services (IAM, Route 53, CloudFront). - Preventing Disabling Security Services: Denying
guardduty:DeleteDetector,cloudtrail:StopLogging,config:DeleteConfigRule. - Disabling Member Account Leave: Denying
organizations:LeaveOrganizationto ensure accounts remain under corporate governance. - Data Perimeter Defense: Enforcing
aws:PrincipalOrgIDconditions on S3 and VPC endpoint policies to prevent exfiltration.