AWS Organizations and Service Control Policies (SCPs) for Enterprise Governance
Prerequisites
- Familiarity with AWS IAM policies
- Basic understanding of AWS multi-account architecture
Steps
AWS Organizations centralizes multi-account governance, while Service Control Policies define the maximum permissions available across accounts and organizational units. Enterprise teams use them to standardize guardrails, reduce blast radius, and enforce compliance at scale.
Overview — What AWS Organizations and SCPs is, core purpose, and why enterprises use it
AWS Organizations is the control plane for managing multiple AWS accounts under a single enterprise hierarchy. Service Control Policies (SCPs) are preventive guardrails that set the maximum permissions an account, OU, or the entire organization can use, even if IAM allows more.
Enterprises use Organizations and SCPs to separate workloads by account, centralize billing, enforce security baselines, and reduce privilege sprawl. SCPs are especially valuable for blocking risky actions such as disabling CloudTrail, leaving regions open unintentionally, or creating public S3 access.
Architecture — Core components, deployment models, data flow
Core components include the management account, member accounts, organizational units (OUs), delegated administrator accounts, and SCPs attached at the root, OU, or account level. Effective permissions are the intersection of IAM identity policies, resource policies, permission boundaries, session policies, and SCPs.
View as text
[Management Account] ---- 1. creates ----> [Organization] [Organization] ---- 2. contains ----> [Root] [Root] ---- 3. attaches ----> [SCPs] [Root] ---- 4. delegates ----> [OU: Security] [OU: Security] ---- 5. inherits ----> [Member Accounts] [Member Accounts] ---- 6. evaluate ----> [IAM + SCP]
Typical deployment model: a landing zone with separate OUs for Security, Infrastructure, Sandbox, and Workloads. Data flow is simple: a principal calls an AWS API, IAM first evaluates identity and resource permissions, then SCPs filter the maximum allowed action. If SCP denies it, the request fails regardless of IAM.
Implementation Guide — Step-by-step setup with exact CLI commands and config files
- Enable Organizations and create OUs:
aws organizations create-organization --feature-set ALL
aws organizations create-organizational-unit --parent-id r-xxxx --name Security
aws organizations create-organizational-unit --parent-id r-xxxx --name Workloads
- Create a deny-by-default SCP for non-approved regions:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyOutsideApprovedRegions",
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": ["us-east-1", "us-west-2"]
}
}
}
]
}
- Attach the policy:
aws organizations create-policy --content file://scp-region-guardrail.json --description "Restrict regions" --name RegionGuardrail --type SERVICE_CONTROL_POLICY
aws organizations attach-policy --policy-id p-xxxx --target-id ou-xxxx
- Verify inheritance and test with a denied action:
aws ec2 describe-regions --region eu-central-1
Code Examples — 3 practical examples in fenced code blocks
# List organization roots and OUs
aws organizations list-roots
aws organizations list-organizational-units-for-parent --parent-id r-xxxx
# aws-config-rule-like guardrail workflow for ops runbooks
organization:
root: r-xxxx
ous:
- name: Security
policies:
- DenyDisableCloudTrail
- name: Workloads
policies:
- DenyOutsideApprovedRegions
import boto3
org = boto3.client('organizations')
policies = org.list_policies(Filter='SERVICE_CONTROL_POLICY')
for p in policies['Policies']:
print(p['Name'], p['Id'])
Security Hardening — Best practices, encryption, access control
Use a dedicated management account with MFA, break-glass access, and no workloads. Delegate admin functions to separate security accounts, and protect policy changes with change control and least privilege.
Encrypt CloudTrail logs and AWS Config data with KMS, and centralize them in a log archive account. Use SCPs to deny disabling logging services, creating internet-facing resources in restricted OUs, and using unsupported regions.
Comparison — AWS Organizations and SCPs vs 2 real named competitors on pricing, deployment, scalability, security
| Platform | Pricing | Deployment | Scalability | Security |
|---|---|---|---|---|
| AWS Organizations + SCPs | No extra charge for Organizations; SCPs included | Native AWS control plane across accounts/OUs | Very high for AWS multi-account estates | Strong preventive guardrails with IAM intersection model |
| Azure Management Groups + Azure Policy | Management groups free; policy features vary by Azure service | Native Azure hierarchy across subscriptions | Very high for Azure enterprises | Strong governance and policy enforcement |
| Google Cloud Resource Manager + Organization Policy Service | Core hierarchy free; policy features included with GCP services | Native GCP org/folder/project hierarchy | High for GCP organizations | Strong constraints and centralized policy controls |
Troubleshooting — 3 common errors with actual log samples and concise fixes
AccessDeniedException: You are not authorized to perform this operation.
An error occurred (AccessDeniedException) when calling the AttachPolicy operation: You are not authorized to perform this operation.
Fix: Use the management account or a delegated admin with organizations:AttachPolicy.
The requested operation is not permitted by the SCP.
User: arn:aws:iam::123456789012:user/dev is not authorized to perform: ec2:RunInstances because no service control policy allows the ec2:RunInstances action
Fix: Review inherited SCPs at the root and OU, then add an explicit allow path or remove the deny.
Policy type not enabled.
AWS Organizations can't create the policy because service control policies are not enabled for this organization.
Fix: Recreate the organization with --feature-set ALL or migrate to all-features if supported.
Best Practices — Do's and don'ts with concrete examples
- Do use a layered OU model: Security, Shared Services, Sandbox, and Production.
- Do start with deny-based guardrails for regions, logging, and public exposure.
- Do test SCPs in a sandbox OU before production rollout.
- Don't attach overly broad denies without exceptions for security tooling.
- Don't use the management account for daily administration.
- Don't assume IAM alone can override an SCP deny; for example,
AdministratorAccessstill cannot bypassDenyin SCPs.
Have a project in mind?
Get an instant AI price estimate for it, or talk directly to our team.
One email a month on what we learn building with AI