AWS Organizations and SCPs
Manage many AWS accounts under one bill, group them into OUs, and set guardrails with service and resource control policies.
What it is
AWS Organizations is a global service that manages many AWS accounts as one group.
- One account creates the organization and becomes the management account. It pays the bill and manages the organization.
- The other accounts are member accounts. An account can belong to only one organization at a time.
- Accounts are arranged in organizational units (OUs), which can be nested.
- Policies attached to the root, an OU or an account apply to everything below it.
Companies use many accounts because an account is the strongest boundary AWS has. Separate accounts for production and development mean a mistake in dev can't touch prod, each team's bill is clear, and limits (quotas) don't collide.
How it works
At the top is the root of the organization. It holds the management account and two OUs:
- OU: Dev contains two member accounts, Dev 1 and Dev 2.
- OU: Prod contains two nested OUs, HR (two accounts) and Finance (one account).
A policy attached to Prod applies to every account in HR and Finance. A policy attached to the root applies to every member account.
Ways to arrange OUs
- By business unit: Sales OU, Retail OU, Finance OU.
- By environment: Prod OU, Dev OU, Test OU.
- By project: Project 1 OU, Project 2 OU, Project 3 OU.
Most companies mix these, for example an environment level under each business unit. OUs can be nested up to five levels below the root.
Consolidated billing
Every organization gets consolidated billing:
- One bill and one payment method for all accounts, with a breakdown per account.
- Volume discounts across accounts. Usage of services with tiered pricing (S3 storage, data transfer) is added together, so all accounts reach cheaper tiers sooner.
- Shared Reserved Instance and Savings Plans discounts. A reservation bought in one account can apply to matching usage in another. The management account can turn this sharing off for chosen accounts.
Other benefits
- Create accounts with an API call, so new accounts can be automated.
- Central security and logging: send CloudTrail logs from every account to one S3 bucket in a logging account, and CloudWatch Logs to a central account.
- Cross-account admin roles in every member account (Organizations creates
OrganizationAccountAccessRolein accounts it creates). - Tag standards for billing, enforced with tag policies.
- Multi-account vs one account with many VPCs: separate accounts isolate better, but take more set-up.
Service control policies (SCPs)
A service control policy sets the maximum permissions for IAM users and roles in member accounts. It looks like an IAM policy, but:
- An SCP never grants anything. Users still need IAM policies. The SCP only limits what those policies can allow.
- SCPs don't affect the management account. Its admins keep full power, which is one reason to run no workloads there.
- SCPs don't affect service-linked roles.
- An action must be allowed at every level from the root down to the account. By default, the AWS managed SCP
FullAWSAccessis attached everywhere, which allows everything; denies are then added on top.
How SCPs are inherited
- The root has
FullAWSAccess, so nothing is blocked at the top. - OU: Sandbox adds an SCP that denies S3. Every account under it loses S3.
- Account A, inside Sandbox, adds its own SCP that denies EC2. Its users can do everything except S3 and EC2, whatever their IAM policies say.
- OU: Workloads and Account E add nothing, so Account E's users can do everything their IAM policies allow.
- The management account is never limited by SCPs.
Deny list or allow list
- Deny list (the common way): keep
FullAWSAccess, and add SCPs that deny specific things, such asdynamodb:*or leaving the organization. - Allow list: replace
FullAWSAccesswith an SCP that allows only named services, such asec2:*andcloudwatch:*. Anything not listed is blocked.
{
"Version": "2012-10-17",
"Statement": [
{ "Sid": "AllowsAllActions", "Effect": "Allow", "Action": "*", "Resource": "*" },
{ "Sid": "DenyDynamoDB", "Effect": "Deny", "Action": "dynamodb:*", "Resource": "*" }
]
}Common SCPs: deny all Regions except approved ones, stop accounts leaving the organization, stop anyone turning off CloudTrail or GuardDuty, require encryption.
Resource control policies (RCPs)
Updated since the slides
Resource control policies are a newer organization policy type, not in the slides. Where SCPs cap what the organization's principals can do, RCPs cap what can be done to its resources (in supported services such as S3, KMS, STS, SQS and Secrets Manager), whoever is calling. A common use: make sure no one outside the organization can ever access its S3 buckets, even if a bucket policy is misconfigured. Like SCPs, RCPs never grant permissions and don't apply to the management account.
Tag policies and other policy types
Tag policies standardise tags across the organization:
- The policy defines tag keys and their allowed values, for example
CostCenterwith values100or200. - They can be enforced for chosen resource types, so non-compliant tagging operations are blocked. Resources with no tags at all aren't affected.
- A report lists tagged and non-compliant resources, and EventBridge can alert on non-compliant tags.
- They help with cost allocation tags and attribute-based access control.
Organizations has other policy types too, such as backup policies (AWS Backup plans for every account), AI services opt-out policies, and several declarative policies that fix a service's settings across accounts (for example EC2).
Limits
| Item | Value |
|---|---|
| Accounts per organization | 10 by default, can be raised |
| OU nesting depth | 5 levels below the root |
| SCPs attached per root, OU or account | 10 |
| SCP size | 10,240 characters |
| RCPs attached per root, OU or account | 5 |
Limits have changed
Older material, including many practice tests, gives the SCP size limit as 5,120 characters and at most 5 SCPs per target. AWS now allows 10,240 characters and 10 SCPs per target.
Real-world examples
- A retail company has OUs for Security, Infrastructure, Workloads (with Prod and Dev under it) and Sandbox. An SCP on Sandbox denies expensive services and every Region except one.
- A regulated firm uses an SCP at the root that denies all Regions outside the EU, so data can't be stored elsewhere even by an admin.
- A group of start-ups shares one organization so their combined usage reaches cheaper S3 and data transfer tiers.
Exam tips
- "Manage many accounts centrally", "one bill" → AWS Organizations, consolidated billing.
- "Share Reserved Instance / Savings Plans discounts between accounts" → consolidated billing in Organizations.
- "Prevent all users in member accounts, including admins, from using a service or Region" → SCP.
- "The SCP denies it but the management account can still do it" → SCPs don't apply to the management account.
- "Ensure only principals in our organization can access our resources" → RCP, or
aws:PrincipalOrgIDin resource policies. - "Enforce consistent tags" → tag policies.
Exam tip
SCPs restrict, IAM policies grant. A user in a member account needs both: an IAM policy that allows the action and SCPs (at every level) that don't block it.
Common traps
- "Attach an SCP to give a user permissions." SCPs never grant.
- "An SCP will stop the management account's admins." It won't.
- "An account can be in two organizations." Only one at a time.
- "Tag policies tag resources for you." They define and enforce rules; they don't add tags to untagged resources.
Hands-on lab: create an organization and an SCP
Goal: turn your lab account into a management account, build an OU structure and write an SCP.
Free
AWS Organizations has no charge. This lab creates no member accounts, so you can delete the organization afterwards.
Trap
Don't create or invite member accounts in this lab. A new member account needs its own email address and must be closed separately, which takes time. Without member accounts, the organization can be deleted in one step.
Create the organization
Open AWS Organizations → Create an organization. Your account becomes the management account. AWS emails you to verify the address.
Build OUs
Under AWS accounts, select Root → Actions → Create new and create Sandbox and Workloads. Inside Workloads, create Prod and Dev.
Turn on SCPs
Open Policies → Service control policies → Enable. The FullAWSAccess policy is now attached to the root and every OU.
Write an SCP
Choose Create policy, name it deny-outside-us-east-1, and paste:
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "DenyOtherRegions",
"Effect": "Deny",
"NotAction": ["iam:*", "organizations:*", "sts:*", "support:*", "cloudfront:*", "route53:*"],
"Resource": "*",
"Condition": { "StringNotEquals": { "aws:RequestedRegion": "us-east-1" } }
}]
}NotAction leaves global services out of the deny. Attach the policy to the Sandbox OU. It would block every member account in Sandbox from using other Regions; your management account isn't affected.
Expected result: an organization with Sandbox and Workloads (Prod, Dev) OUs, and an SCP attached to Sandbox.
Clean up:
Delete the organization
Detach and delete the SCP, delete the OUs, then open Settings → Delete organization. This works because the organization has no member accounts.