Organizations, SCPs and Control Tower
Overview
AWS Organizations lets you create and govern many AWS accounts as one. Accounts are placed in organizational units (OUs), and policies attached to the root, OUs or accounts apply downward. The best-known policy type is the Service Control Policy (SCP), a set of guardrails that defines the maximum permissions available.
Think of a company's building access system. Employees get badges (IAM permissions), but the building rules (SCPs) decide which floors can ever be opened: even the CEO's badge cannot open the server room if the building rule says "never". SCPs never grant access; they only limit it.
AWS Control Tower automates the set-up of a secure multi-account landing zone and applies controls (preventive via SCPs/RCPs, detective via Config, proactive via CloudFormation hooks). DOP-C02 expects you to write SCPs, understand evaluation logic and know how to automate account vending and organisation-wide service integrations.
Key Concepts
- SCPs do not grant permissions; the effective permission is the intersection of SCP, permission boundary (if any) and identity/resource policies.
- SCPs affect all IAM users and roles in member accounts, including the root user of those accounts, but not the management account and not service-linked roles.
- Strategies: deny list (default FullAWSAccess plus explicit Deny statements) and allow list (remove FullAWSAccess and allow only specific services).
- Resource control policies (RCPs) restrict permissions on resources (S3, KMS, STS, SQS, Secrets Manager) regardless of principal; they help build a data perimeter.
- Other policy types: tag policies, backup policies, AI services opt-out policies, declarative policies (enforce service baseline configuration).
- Control Tower provides a landing zone (management, Log Archive and Audit accounts), Account Factory, and a controls library (mandatory, strongly recommended, elective).
- Trusted access and delegated administrators let services such as GuardDuty, Config, Security Hub, CloudFormation StackSets and IAM Access Analyzer run from a member account instead of the management account.
- Condition keys useful in SCPs: aws:RequestedRegion, aws:PrincipalOrgID, aws:PrincipalArn, aws:PrincipalTag, aws:ResourceOrgID.
Detailed Notes
SCP evaluation
| Layer | Must allow? | Notes |
|---|---|---|
| SCP at root, each OU and the account | Yes, at every level | An action must be allowed (or not denied) by each level in the path |
| Permissions boundary | Yes, if set | Applies to the role or user |
| Identity-based or resource-based policy | Yes, at least one grants | Same-account: either grants; cross-account: both |
| Explicit Deny anywhere | Always wins |
The management account is never restricted by SCPs, so keep workloads out of it.
Deny-list SCP examples
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyOutsideApprovedRegions",
"Effect": "Deny",
"NotAction": ["iam:*", "organizations:*", "sts:*", "support:*", "cloudfront:*", "route53:*"],
"Resource": "*",
"Condition": { "StringNotEquals": { "aws:RequestedRegion": ["eu-west-1", "us-east-1"] } }
},
{
"Sid": "ProtectSecurityBaseline",
"Effect": "Deny",
"Action": ["cloudtrail:StopLogging", "cloudtrail:DeleteTrail", "config:StopConfigurationRecorder", "guardduty:DeleteDetector"],
"Resource": "*",
"Condition": { "ArnNotLike": { "aws:PrincipalArn": "arn:aws:iam::*:role/SecurityAdmin" } }
},
{
"Sid": "DenyLeavingOrg",
"Effect": "Deny",
"Action": "organizations:LeaveOrganization",
"Resource": "*"
}
]
}
Global services (IAM, CloudFront, Route 53) must be exempted in region-deny SCPs using NotAction. Limits: SCP size 5,120 characters; up to 5 SCPs per target; test in a sandbox OU first.
Deny vs allow list
| Approach | How | Pros | Cons |
|---|---|---|---|
| Deny list | Keep FullAWSAccess, add Deny | Simple, new services work | Must anticipate risky actions |
| Allow list | Remove FullAWSAccess, allow named services | Tight control | High maintenance; new services blocked |
Resource control policies
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "DataPerimeter",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "*",
"Condition": {
"StringNotEqualsIfExists": { "aws:PrincipalOrgID": "o-exampleorgid" },
"BoolIfExists": { "aws:PrincipalIsAWSService": "false" }
}
}]
}
RCPs enforce that only your organisation's principals access supported resources; SCPs restrict what your principals can do. Together they create a data perimeter.
Control Tower
| Component | Purpose |
|---|---|
| Landing zone | Organisation structure, Log Archive and Audit accounts, IAM Identity Center, baseline CloudTrail and Config |
| Controls | Preventive (SCP/RCP), detective (Config rules), proactive (CloudFormation Hooks) |
| Account Factory | Self-service account vending via Service Catalog, with baselines and customisations |
| Account Factory for Terraform / Customizations for Control Tower | GitOps pipelines to vend and customise accounts |
| Dashboard | Compliance status across accounts and OUs |
Drift occurs when someone changes governed resources outside Control Tower (for example moves an account to an OU without enrolment); resolve with repair or re-register the OU. Enabling a control on an OU deploys the SCP or Config rule to all accounts in it, including new accounts.
aws organizations create-policy --name deny-region --type SERVICE_CONTROL_POLICY \
--content file://deny-region.json --description "Region guardrail"
aws organizations attach-policy --policy-id p-abcd1234 --target-id ou-ab12-prod1234
aws organizations register-delegated-administrator \
--account-id 111122223333 --service-principal guardduty.amazonaws.com
aws organizations enable-aws-service-access --service-principal config.amazonaws.com
Multi-account design
| OU | Contents |
|---|---|
| Security | Log Archive, Audit/Security tooling accounts |
| Infrastructure | Networking (Transit Gateway), shared services, CI/CD tooling |
| Workloads (Prod / NonProd) | Application accounts per team and environment |
| Sandbox | Developer experimentation with strict budget and SCPs |
| Suspended | Closed accounts with deny-all SCP |
Automating account vending
A request (ticket or API call) invokes Service Catalog Account Factory or Control Tower's CreateManagedAccount. A lifecycle event (CreateManagedAccount) on EventBridge triggers a pipeline that deploys StackSets, creates budgets, registers with GuardDuty and Security Hub, and sets up IAM Identity Center assignments.
Related services
IAM Identity Center (SSO) with permission sets assigns humans to accounts; IAM Access Analyzer finds external access and unused permissions; RAM shares subnets and Transit Gateways within the organisation.
Real World Example
Scenario: an enterprise needs strong guardrails with developer autonomy. The platform team uses Control Tower with OUs for Security, Infrastructure, Workloads and Sandbox. Region-deny and baseline-protection SCPs apply at the root, while the Sandbox OU gets an extra SCP blocking expensive services.
Developers request accounts through Account Factory; an EventBridge-triggered pipeline layers StackSets, budgets and security tooling enrolment. An RCP restricts S3 and KMS to principals from the organisation, preventing accidental data exposure.
Architecture Diagram
Policies flow down OUs; Account Factory vends governed accounts.
- 1The landing zone creates Log Archive and Audit accounts and enables baseline controls.
- 2SCPs and RCPs are attached to the root and OUs.
- 3A developer requests an account through Account Factory.
- 4Lifecycle events trigger customisation pipelines (StackSets, budgets).
- 5Detective controls report compliance on the Control Tower dashboard.
Best Practices
- ✓Keep workloads out of the management account; use delegated administrators for security services.
- ✓Prefer deny-list SCPs, tested in a sandbox OU, and exempt global services in region guardrails.
- ✓Use RCPs plus SCPs to build a data perimeter.
- ✓Automate account vending and post-provisioning customisation from lifecycle events.
- ✓Use IAM Identity Center instead of long-lived IAM users.
Common Interview Questions
Exam Tips
DOP-C02 focus
- SCPs never grant permissions and do not apply to the management account.
- "Restrict Regions" = deny SCP on aws:RequestedRegion with global services in NotAction.
- "Automatically provision compliant accounts" = Control Tower Account Factory.
- Run security tooling from a delegated administrator account.
Finished this lesson?
0 of 44 lessons done · 0% of the course

