Introduction
The AWS Organizations setup that made sense at ten engineers becomes a governance problem at fifty. I've inherited orgs where the OU structure was a flat list of accounts with names like project-test-2 and johns-sandbox sitting at the root level, SCPs applied inconsistently across accounts that nobody remembered creating, and a management account that had been used to run workloads because "it was already there." The accounts themselves were fine. The structure holding them together was not.
AWS Organizations is not a feature you configure once and forget. It's the governance layer for your entire cloud estate, and its design decisions (which OUs exist, how SCPs chain through the hierarchy, how accounts get created and who owns them), constrain everything built inside it. Done well, AWS Organizations scales with your engineering organization and makes compliance, cost attribution, and blast radius management progressively easier. Done poorly, it becomes a liability that's expensive to restructure without disrupting running workloads.
This post covers how to design an OU hierarchy that scales, how to automate account vending without creating governance gaps, and the SCP patterns that enforce organizational policy without becoming blockers.
Why AWS Organizations Structure Fails at Scale
Most AWS Organizations problems are not failures of the technology. They're failures of intent: the structure was never designed with a clear model of what it needed to enforce, what teams it needed to support, or how it would evolve as the organization grew.
The single-level OU structure is the most common failure mode. Teams create OUs for obvious categories (Production, Development, Sandbox), apply a few SCPs, and consider the job done. This works until the organization has multiple product lines with different compliance requirements, teams that need isolated billing attribution, or regulatory boundaries that require hard account separation. At that point, the flat OU structure can't express the distinctions that matter, and retrofitting hierarchy into a running org is a careful, risky operation.
The second failure mode is inconsistent account creation. Without an automated account vending process, accounts get created manually, inconsistently, and often by whoever had access at the time. The result is an org where half the accounts have the baseline guardrails and configurations applied correctly and half don't, and there's no easy way to tell which is which without auditing each account individually.
The concrete failure I see most often: a platform team sets up the org structure, applies SCPs to the root and a few OUs, and then publishes a runbook for creating new accounts manually. Six months later, three different engineers have created accounts using the runbook, each making slightly different decisions about which OU to place the account in, which baseline Config rules to apply, and which IAM roles to bootstrap. The org now has fifteen accounts with fifteen different baseline configurations, none of which are enforced, they're just documented suggestions.
The difference between an organization that scales and one that becomes a liability is almost always automation. Account creation and baseline configuration need to be a pipeline, not a runbook.
AWS Deep Dive: Building an Organization That Scales
OU Hierarchy Design That Reflects Real Governance Boundaries
The right OU structure for AWS Organizations is not a reflection of your product roadmap or your team org chart. It's a reflection of your governance requirements, specifically, which accounts need the same SCPs applied to them.
SCPs are the primary tool for enforcing organizational policy, and they apply to entire OUs. If you need different SCP behavior for different accounts, those accounts need to be in different OUs. Designing the OU structure means deciding which governance distinctions are significant enough to warrant separate OUs.
A starting structure that works for most growth-stage to enterprise organizations:
Root
├── Infrastructure OU
│ ├── Management (billing, org management: no workloads)
│ ├── Security (CloudTrail aggregation, GuardDuty, Config aggregator)
│ └── Shared Services (Transit Gateway, DNS, internal tooling)
├── Workloads OU
│ ├── Production OU
│ │ ├── [product-a-prod]
│ │ └── [product-b-prod]
│ ├── Non-Production OU
│ │ ├── [product-a-staging]
│ │ ├── [product-a-dev]
│ │ └── [product-b-staging]
│ └── Sandbox OU
│ └── [team-member-sandboxes]
└── Suspended OU
└── [accounts pending closure]
The Suspended OU is the one most organizations forget. When accounts need to be closed, AWS doesn't close them immediately, there's a waiting period during which the account still exists and still needs to be accessible (at minimum for billing purposes). Moving accounts to a Suspended OU with SCPs that deny all API actions except account management gives you a clean governance boundary without terminating the account prematurely.
The Sandbox OU is equally important as a distinct category. Sandbox accounts should have liberal IAM permissions so engineers can experiment, but strict SCPs preventing data exfiltration and ensuring that nothing in the sandbox can reach production. The SCP that belongs on the Sandbox OU at minimum:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyVPCPeeringToProduction",
"Effect": "Deny",
"Action": [
"ec2:AcceptVpcPeeringConnection",
"ec2:CreateVpcPeeringConnection"
],
"Resource": "*"
},
{
"Sid": "DenyExpensiveServices",
"Effect": "Deny",
"Action": ["ec2:RunInstances"],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringNotLike": {
"ec2:InstanceType": ["t3.*", "t4g.*"]
}
}
}
]
}
This prevents sandbox engineers from accidentally peering into production networks and prevents accidental large instance launches, two of the most common sandbox-to-production failure modes.
Account Vending: From Manual Runbook to Automated Pipeline
Account vending is the process of creating a new AWS account, placing it in the correct OU, applying baseline configuration, and handing it off to the requesting team, fully provisioned and governance-compliant from day one.
The wrong way: a shared runbook, a human creating the account via the console, and a checklist of manual configuration steps that the human may or may not follow completely.
The right way: a pipeline. Either AWS Control Tower Account Factory (which automates account provisioning with a landing zone baseline applied automatically) or a custom account vending machine built on AWS Organizations API calls and CloudFormation StackSets.
For teams using Terraform, the aws_organizations_account resource combined with a StackSet that deploys baseline infrastructure looks like this:
# Account creation in the management account
resource "aws_organizations_account" "new_account" {
name = var.account_name
email = var.account_email
parent_id = var.target_ou_id
tags = {
Environment = var.environment
Team = var.owning_team
Product = var.product_name
CostCenter = var.cost_center
CreatedDate = timestamp()
Repository = "github.com/yourorg/account-vending"
}
lifecycle {
ignore_changes = [tags["CreatedDate"]]
}
}
# StackSet instance that deploys baseline to the new account
resource "aws_cloudformation_stack_set_instance" "baseline" {
stack_set_name = aws_cloudformation_stack_set.account_baseline.name
account_id = aws_organizations_account.new_account.id
region = var.primary_region
depends_on = [aws_organizations_account.new_account]
}
The account_baseline StackSet should deploy: the IAM Identity Center permission sets and assignments for the account, AWS Config rules that match the OU's compliance requirements, a CloudTrail trail that logs to the centralized security account, a default VPC deletion (the default VPC is a governance liability in every account, delete it), and the baseline alerting (root login alerts, CloudTrail disruption alerts) via CloudWatch and SNS.
The non-obvious behavior in AWS Organizations account creation: new accounts have a default limit on how quickly they can be created. If you're running an account vending pipeline for an acquisition or large org restructure that needs to create many accounts in a short window, you may hit the account creation rate limit (currently ten accounts per 24 hours by default, verify current limits with AWS as this can be raised via Service Quotas). Plan for this if you're vending accounts at scale and the timeline is tight.
SCP Design: Enforcement That Doesn't Block Legitimate Work
SCPs fail in two directions. Too permissive and they're not enforcing anything meaningful. Too restrictive and they become blockers that engineers route around through IAM policy exceptions in individual accounts, which defeats the purpose entirely.
The SCP layering model that works: apply broad, universal restrictions at the root, apply environment-specific restrictions at the environment OU, and apply workload-specific restrictions at individual OUs for compliance-bounded products.
Root-level SCPs that should be universal across every account:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ProtectOrganizationStructure",
"Effect": "Deny",
"Action": [
"organizations:LeaveOrganization",
"organizations:DeleteOrganization"
],
"Resource": "*"
},
{
"Sid": "RequireIMDSv2",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringNotEquals": {
"ec2:MetadataHttpTokens": "required"
}
}
},
{
"Sid": "DenyRootUser",
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:PrincipalArn": "arn:aws:iam::*:root"
}
}
}
]
}
The RequireIMDSv2 SCP is one that most organizations haven't applied yet and should. IMDSv1 is the attack surface behind the SSRF vulnerability class that has compromised multiple high-profile AWS environments (the Capital One breach is the canonical public example). Denying any EC2 instance launch that doesn't require IMDSv2 via SCP means the enforcement is at the organizational level: no individual account's IAM policy can override it.
The non-obvious SCP interaction: SCPs use a deny-override model with IAM. If an SCP denies an action, no IAM policy in the account, including AdministratorAccess, can allow it. But if an SCP allows an action, it still requires a corresponding IAM policy allow. SCPs are not grants; they're boundaries. Engineers who don't work with Organizations regularly confuse this and expect an SCP allow to grant permissions it doesn't grant.
Enjoying this so far?
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.
Tradeoffs & Decision Framework
The two primary approaches to landing zone management, AWS Control Tower vs. a custom Organizations setup, have meaningfully different tradeoff profiles.
AWS Control Tower: Control Tower provides a pre-built landing zone with opinionated guardrails, an Account Factory for provisioning new accounts through Service Catalog, and integrated AWS SSO (now IAM Identity Center) setup. It handles the bootstrapping complexity and gives you a baseline that's compliant with AWS security recommendations out of the box.
The tradeoffs: Control Tower manages specific resources in your accounts, and those resources cannot be modified outside of the Control Tower workflow without breaking the managed state. If your team uses Terraform for everything, importing Control Tower-managed resources into state is possible but careful work. The guardrails Control Tower applies are sometimes more restrictive than a custom setup would choose, and not all guardrails can be selectively disabled without going through the Control Tower console. For highly customized environments or teams with strong IaC discipline, Control Tower's opinionated structure can feel constraining.
Custom Organizations setup: A custom setup gives you complete control over every SCP, every OU decision, every baseline configuration applied to new accounts. It's more work to build initially and more work to maintain, there's no managed guardrail library, no Account Factory UI, and no pre-built landing zone. Every choice is yours.
The tradeoff: you own the operational surface area. When a new AWS service launches that creates an additional attack surface, Control Tower may issue a new guardrail automatically. In a custom setup, you build and apply it yourself.
Decision framework:
- Team with strong IaC discipline, existing Terraform state management, and custom compliance requirements → custom Organizations setup
- Team new to multi-account AWS, needing a governed starting point quickly, or with compliance requirements that align well with AWS security benchmarks → Control Tower
- Team at 50+ accounts, multiple compliance boundaries, or regulated industry → evaluate Control Tower with Customizations for AWS Control Tower (CfCT) to layer custom automation on top of the managed baseline
Lessons From the Field
1. The management account is not a place to run workloads, ever. Inherited an org where the security team was running their SIEM tooling directly in the management account because "it already had billing visibility." The management account has elevated organizational permissions that no workload should have access to. If the SIEM is compromised, the attacker has access to AWS Organizations management APIs. Moved the workload to a dedicated security account. The management account now has zero non-AWS resources running in it and has had no workloads since.
2. SCPs are the one place where a typo can lock out every account in your organization simultaneously.
Applied a root-level SCP during a governance hardening engagement at a fintech client that had a malformed condition: a missing closing bracket in the Condition block. The SCP was syntactically valid but logically incorrect: it denied * with a condition that always evaluated to true, effectively denying all API calls from all principals in all member accounts. We caught it in a member account test before applying to root. Test SCPs in a non-production OU before applying at root or in production OUs. Always.
3. Account vending without ownership documentation creates orphaned accounts within twelve months. Built an account vending pipeline for a SaaS company that was creating accounts for feature teams on request. Eighteen months later, they had forty-one accounts. Eleven of them had no identifiable owner: the teams had disbanded, the engineers had left, and the accounts still had resources running and charges accumulating. The fix was retroactive: add owning team, primary contact, and creation purpose as mandatory tags in the account vending pipeline, and run a quarterly audit comparing account tags against active team rosters.
4. OU restructuring in a live org is a change management problem as much as a technical one. Moved twenty accounts from a flat root-level structure into a proper OU hierarchy for an enterprise client. The technical work took one week. The coordination (notifying every team that their SCPs were changing, verifying that no running workload would be affected by the new guardrails in the destination OU, getting sign-off from the security and compliance teams), took four weeks. Plan for the change management overhead. It's larger than the technical work.
5. IAM Identity Center (SSO) assignment should be part of account vending, not a post-provisioning step. The most consistent gap I've seen in account vending pipelines is IAM Identity Center assignment. Accounts get created, baseline Config and CloudTrail get deployed, but the permission sets and group assignments that give engineers actual access get handled manually by the platform team as a separate ticket. This creates a delay between "account created" and "account usable" that can run days. Automate the permission set assignment as part of the vending pipeline. An account without configured access is not a provisioned account.
Final Thoughts
AWS Organizations is one of those services where the investment in getting the structure right compounds over time in ways that are hard to see until you've experienced the alternative. A well-designed org with automated account vending and consistent SCP enforcement makes compliance audits faster, incident response cleaner, and cost attribution accurate. A poorly designed one adds organizational overhead to every governance conversation for as long as it exists.
The pattern I see most often in mature organizations is one of two things: they got the structure right early and the org scaled cleanly, or they didn't, and they're now running a multi-year cleanup effort to consolidate accounts, rationalize SCPs, and move toward an automated vending model. The cleanup effort is always more expensive than building it correctly would have been: not because the technical work is hard, but because you're doing it against a live, running environment with real workloads and real teams who need advance notice of every change.
AWS Organizations best practices are not aspirational. They're the difference between an org structure that helps your engineering team move faster and one that creates governance debt every time a new account is created.
Key Takeaways
- OU structure should reflect governance boundaries, not team org charts or product roadmaps. The right question for each OU is: which accounts need the same SCPs applied? If accounts need different SCP behavior, they belong in different OUs.
- A
SuspendedOU with deny-all SCPs is essential for managing accounts pending closure. AWS doesn't immediately close accounts: they pass through a waiting period during which they still exist and need governance boundaries. - Account vending must be automated, not documented. A runbook for manual account creation produces inconsistent baseline configurations across accounts. An automated pipeline, via Control Tower Account Factory or a custom Terraform pipeline with StackSets, ensures every account starts governance-compliant.
- Require IMDSv2 via SCP at the root level. IMDSv1 is the attack surface behind the SSRF vulnerability class responsible for multiple high-profile AWS compromises. An SCP enforcing
ec2:MetadataHttpTokens: requiredon everyRunInstancescall cannot be overridden by any IAM policy in any member account. - SCPs are boundaries, not grants. An SCP allow does not grant permissions: it removes a boundary. IAM policies in the account still need to explicitly allow the action. Engineers unfamiliar with Organizations regularly confuse this and expect SCP allows to function like IAM allows.
- Test SCPs in a non-production OU before applying at root or production OUs. A syntactically valid but logically incorrect SCP applied at root can deny all API calls from every principal in every member account simultaneously. There is no undo, only another SCP update.
- IAM Identity Center permission set assignment belongs in the account vending pipeline, not a separate manual ticket. An account without configured human access is not a provisioned account. The delay between account creation and usable access is an operational gap that creates pressure to use root credentials, exactly the behavior you're trying to eliminate.
Get insights like this in your inbox
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.