Difficulty: Intermediate
What is AWS Organizations, and how do OUs, Service Control Policies and consolidated billing help you manage many AWS accounts?
AWS Organizations lets you group many AWS accounts under one management account, arrange them into organizational units (OUs), apply guardrail policies like Service Control Policies (SCPs) across them, and pay for all of them with a single consolidated bill. It is the foundation of any serious multi-account AWS setup, where separate accounts are used as hard security and billing boundaries for prod, staging, teams or customers.
An AWS account is the strongest isolation boundary AWS offers. Separate accounts give you:
A typical structure: a Security OU (log archive, audit/security tooling), an Infrastructure OU (networking, shared services), a Workloads OU split into Prod and Non-Prod, and a Sandbox OU for experiments.
SCPs define the maximum permissions available to IAM users and roles in member accounts. Key rules interviewers test:
FullAWSAccess SCP. Remove it and nothing is allowed unless another SCP permits it.Common SCPs: deny leaving the organization, deny disabling CloudTrail or GuardDuty, restrict regions to ap-south-1 and ap-south-2 for data residency, deny creating IAM users with access keys.
| Policy | What it controls |
|---|---|
| SCP | Maximum permissions for principals in member accounts |
| RCP (resource control policy) | Maximum permissions on resources such as S3 buckets and KMS keys, even when accessed by outside principals |
| Declarative policies | Enforce a desired service configuration, such as blocking public AMI sharing, that persists even as APIs change |
| Tag policies | Standardise tag keys and values |
| Backup policies | Org-wide AWS Backup plans |
| AI services opt-out | Control whether AI services may use your content |
All member account usage rolls up into one bill paid by the management account, with per-account breakdowns in Cost Explorer. Benefits:
Most teams do not wire this by hand. AWS Control Tower builds a landing zone on top of Organizations with preconfigured OUs, log archive and audit accounts, guardrails and account vending. IAM Identity Center gives engineers single sign-on into every account. Security services (GuardDuty, Security Hub, Config) are enabled organization-wide with a delegated administrator account.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyOutsideIndiaRegions",
"Effect": "Deny",
"NotAction": [
"iam:*", "organizations:*", "sts:*", "support:*",
"cloudfront:*", "route53:*", "budgets:*", "waf:*"
],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": ["ap-south-1", "ap-south-2"]
}
}
}
]
}
This denies any regional API call outside Mumbai and Hyderabad. Global services are excluded via NotAction, otherwise IAM, CloudFront and Route 53 would break because their endpoints live in us-east-1.
ROOT_ID=$(aws organizations list-roots --query "Roots[0].Id" --output text)
OU_ID=$(aws organizations create-organizational-unit \
--parent-id "$ROOT_ID" --name Workloads \
--query OrganizationalUnit.Id --output text)
POLICY_ID=$(aws organizations create-policy \
--name india-only --type SERVICE_CONTROL_POLICY \
--description "Restrict to Indian regions" \
--content file://india-only.json \
--query Policy.PolicySummary.Id --output text)
aws organizations attach-policy --policy-id "$POLICY_ID" --target-id "$OU_ID"
Run from the management account. Every account moved into the Workloads OU inherits the region restriction immediately.
AWS Organizations, Organizational Units, Service Control Policies, Consolidated Billing, Management Account