Organizations, SCPs and multi-account setups

Intermediate · 16 min

Group AWS accounts into organizational units, set guardrails with service and resource control policies, and lay out a sane multi-account structure.

Before thisCreating an account and securing the root userPolicy documents and evaluation logicIAM Identity Center and federation

Amazon Web Services · 16 min

Organizations, SCPs and multi-account setups

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by Amazon Web ServicesReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • An organization is a tree: a root, organizational units, and accounts, with one management account that pays and administers.
  • SCPs cap what principals in member accounts may do. RCPs cap what can be done to resources in member accounts, including by outsiders.
  • Neither grants anything, and neither applies to the management account. Service-linked roles are exempt too.
  • A permission must survive every level from the root down to the account.
  • Put no workloads in the management account. Separate security, logging, shared services, production and non-production.
  • Test a guardrail on a sandbox OU first. A wrong one can break every account beneath it at once.

Many accounts, one owner

Accounts are good walls, so you end up with many of them. Then the questions start. Who pays? How do you stop every account from switching off logging? Must you configure each one by hand?

AWS Organizations joins accounts into a tree:

  • the root at the top,
  • organizational units (OUs) as folders, nested up to five levels,
  • accounts as leaves.

One account is the management account. It creates the organization, receives the consolidated bill and administers the rest. The others are member accounts.

Guardrails

Inside each account, administrators manage IAM as usual. Organization policies set limits they cannot lift, like a building’s fire code that applies however a tenant arranges the furniture.

Service control policy (SCP) Resource control policy (RCP)
Limits what principals in member accounts can do what can be done to resources in member accounts
Applies to outside callers no yes
Max size 10,240 characters 5,120 characters
Coverage all services a list of supported services

Both only restrict. An SCP that allows s3:* gives nobody access to S3; somebody still needs an identity policy. Neither touches the management account, and SCPs do not restrict service-linked roles.

Inheritance is an intersection. To use a permission, it must be allowed at the root, at every OU on the path and at the account. Enabling SCPs attaches FullAWSAccess everywhere, so you normally keep that and add deny statements:

{"Version":"2012-10-17","Statement":[
 {"Sid":"OnlyTwoRegions","Effect":"Deny",
  "NotAction":["iam:*","organizations:*","route53:*","cloudfront:*","sts:*","support:*"],
  "Resource":"*",
  "Condition":{"StringNotEquals":{"aws:RequestedRegion":["eu-west-1","eu-central-1"]}}},
 {"Sid":"KeepTheAuditTrail","Effect":"Deny",
  "Action":["cloudtrail:StopLogging","cloudtrail:DeleteTrail","organizations:LeaveOrganization"],
  "Resource":"*"}]}

The NotAction list exempts global services, which would otherwise break. Treat it as illustrative and extend it for what you use.

RCPs answer a different worry: someone’s bucket or key policy grants access to an outsider. One RCP can require that callers belong to your organization (aws:PrincipalOrgID), with exceptions for AWS services, whatever individual resource policies say. Together these form a data perimeter.

Applying it

aws organizations create-organization --feature-set ALL
aws organizations enable-policy-type --root-id r-abcd --policy-type SERVICE_CONTROL_POLICY
aws organizations create-organizational-unit --parent-id r-abcd --name workloads
aws organizations create-policy --name guardrails --type SERVICE_CONTROL_POLICY \
  --description base --content file://scp.json
aws organizations attach-policy --policy-id p-examplepolicy --target-id ou-abcd-example

SCPs and RCPs need the “all features” mode, not consolidated billing only. Roll out to a test OU first.

When a guardrail bites

A blocked request looks like any other AccessDenied, which confuses people whose IAM policy plainly allows the action. Read the whole message, which often says that a service control policy denied it. If you administer the account and can’t find the cause in IAM, ask what is attached above you: you cannot see or edit organization policies from an ordinary member account. Name your statements with a Sid and keep a written reason for each, so the next person can tell a deliberate fence from a forgotten experiment.

A starting layout

OU Accounts Why separate
Security log archive, security tooling evidence that workload admins cannot delete
Infrastructure networking, shared services one team, wide blast radius
Workloads / Prod one per application or team isolation and clear cost
Workloads / Non-prod dev, staging looser rules
Sandbox experiments spending limits, no company data

Organize OUs by the rules they need, not by the company’s reporting lines, which change.

AWS Control Tower builds this “landing zone” for you, with account creation and ready-made controls. Use it unless you have reasons to assemble the pieces yourself.

What else the organization does

Consolidated billing pools usage for volume pricing. Security services and an organization-wide CloudTrail trail can be switched on for every account, managed by a delegated administrator account so the management account stays empty. Other policy types cover tagging, backup and declarative settings for some services. And Identity Center gives people access across it all.

About the video

The embed is AWS’s “Multi Account Structure in AWS with AWS Organizations”, August 2025, 16 minutes. Its chapters cover an agenda, what customers want from a multi-account setup, Control Tower and best practices. It is a structure overview, not a policy-writing tutorial; the Cybr video in deeper covers RCPs. I judged both from chapters and descriptions, since transcripts couldn’t be fetched.

What was run: the organization commands and the SCP attachment ran against moto, a local emulator, which stores policies but does not enforce them, so the SCP’s effect is untested. IDs above are placeholders. Limits, exemptions and RCP behaviour are from AWS documentation, checked in November 2026.

Where this fits

That completes identity. Next you build the network your resources live in: VPCs, subnets and address planning.

Check yourself

  1. 01An SCP on the workloads OU denies cloudtrail:StopLogging. The account's root user tries it. What happens?

    It is denied. SCPs apply to all principals in member accounts, including the root user.

  2. 02The same SCP is attached to the organization root. Does it stop an administrator in the management account?

    No. SCPs do not affect the management account at all, which is why nothing but organization administration should run there.

  3. 03A developer adds a bucket policy granting a stranger's account access. Which control could block the stranger, and why not an SCP?

    A resource control policy, because it limits access to resources in your accounts whoever the caller is. An SCP limits only your own principals.

  4. 04A Region restriction SCP denies everything outside eu-west-1, and IAM stops working. Why?

    IAM is a global service whose requests resolve to us-east-1. The deny must exempt global services, usually with NotAction.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark