Skip to content
Visual explainer 2h 30m to learn 5 steps

Grow from one sandbox to a multi-account landing zone

Explain how Organizations, SCPs and Control Tower turn one sandbox into a governed set of accounts.

By Invicly Tech, , in AWS Cloud Engineering. About 12 minutes to read.

Topic 6 of 38

In short

As usage grows, one sandbox account becomes many accounts grouped in AWS Organizations. Organizational units (OUs) group accounts, service control policies (SCPs) set the maximum permissions anyone in those accounts can have, and AWS Control Tower sets up a landing zone with logging, security accounts and ready-made controls. Separate sandbox, dev and prod accounts give hard boundaries for blast radius and billing.

Think of it like this: Organizations is the building, OUs are floors, SCPs are the rules taped to each floor's door, and Control Tower is the contractor who fits the standard locks, cameras and fire alarms.

Explained simply

A single sandbox account is fine for learning. Once real work starts, you want several accounts: one per person to experiment, one for development and one for production. Separate accounts keep mistakes, bills and permissions apart in a way policies inside one account cannot.

AWS Organizations ties these accounts together. One account becomes the management account. It pays one combined bill and can create new accounts. Accounts are grouped into organizational units, or OUs, which work like folders.

Service control policies, or SCPs, are rules attached to the organization, an OU or an account. They set the most that anyone in those accounts can do. An SCP can say 'nobody may use Regions outside the EU' or 'nobody may turn off CloudTrail'. SCPs never give access on their own; IAM policies still have to allow things.

AWS Control Tower builds this setup for you. It creates a landing zone: a Security OU with a Log Archive account and an Audit account, central logging, Identity Center, and a catalogue of controls you can switch on per OU. Account Factory then creates new accounts with the same baseline.

You do not need all of this on day one. A good path is: one sandbox, then Organizations with a few OUs and SCPs, then Control Tower when you have several teams or environments.

Press Play on a diagram to walk through it one step at a time.

MapA small landing zone for the sample service
Organization root (management account)
  • Security OU
    • Log Archive account
    • Audit account
  • Sandbox OU
    • Personal sandbox accounts
    • Region-restricting SCP
  • Workloads OU: NonProd
    • filesvc-dev account
  • Workloads OU: Prod
    • filesvc-prod account
    • Stricter SCPs
CycleAccount lifecycle in a landing zone
  1. 1
    Request

    Team asks for an account

  2. 2
    Provision

    Account Factory into the right OU

  3. 3
    Baseline

    Logging, controls, budgets, access

  4. 4
    Operate

    Workloads run under guardrails

  5. 5
    Close

    Remove access, close account

  6. Back to step 1

In depth

Organizations, OUs and policy inheritance

An organization has one root, which contains accounts and OUs, and OUs can be nested. Policies attached higher up apply to everything below. For SCPs, an action is available in an account only if every level from the root down to the account allows it. When SCPs are first enabled, the AWS managed FullAWSAccess policy is attached everywhere, so nothing changes until you add restrictions.

Two styles exist. A deny list keeps FullAWSAccess and adds Deny statements for specific things, which is easy to maintain. An allow list replaces FullAWSAccess with explicit Allow statements, which is strict but needs updating whenever a team adopts a new service. Most organizations use deny lists. Organizations also supports resource control policies (RCPs), which cap what can be done to resources such as S3 buckets and KMS keys, plus tag, backup and AI opt-out policies.

  • Root > OUs > accounts
  • SCP must allow at every level
  • FullAWSAccess attached by default
  • Deny-list SCPs are easiest to maintain
  • RCPs limit access to resources, SCPs limit principals

Writing a Region-restricting SCP

A common first guardrail limits work to approved Regions. The SCP denies every action where aws:RequestedRegion is not in the list. Global services such as IAM, Organizations, Route 53, CloudFront, STS's global endpoint, Support and billing tools send their requests to us-east-1 or have no Region, so the statement uses NotAction to exempt them, otherwise the console breaks. AWS publishes an example of this SCP; start from it rather than writing your own list from memory.

You can also exempt a break-glass role with a condition on aws:PrincipalARN, so a platform team can still fix things. Remember the limits: SCPs do not apply to the management account or service-linked roles, and they have a maximum size, so keep them compact. Attach to a test OU, move one sandbox account into it, test normal tasks, then roll out.

FlowRolling out a new SCP safely
  1. 1
    Draft from AWS example

    Deny outside eu-west-1, eu-west-2

  2. 2
    Attach to test OU

    Not the root

  3. 3
    Move one sandbox in

    Run normal lab tasks

  4. 4
    Check denials

    CloudTrail errors and console pages

  5. 5
    Attach to target OUs

    Sandbox and workloads

What SCPs never do

SCPs set a ceiling, not a floor. They never grant permission, so a user with no IAM policies has no access even if the SCP allows everything. They only affect IAM users and roles in member accounts, including the member account's root user, but not the management account, not service-linked roles and not principals from outside the organization who reach your resources through a resource policy. That last gap is what RCPs help close.

SCPs also do not log or alert. A denied call appears in CloudTrail like any other AccessDenied, with the message naming the SCP as the cause. Pair preventive SCPs with detective controls such as AWS Config rules and Security Hub to catch things SCPs cannot express, such as an unencrypted volume that was created before the rule existed.

  • Never grant permissions
  • Do not affect the management account
  • Do not affect service-linked roles
  • Do not limit external principals (use RCPs)
  • Do not detect existing misconfigurations

Control Tower and the account plan

Control Tower sets up a landing zone in your chosen home Region: it creates the Security OU with Log Archive and Audit accounts, configures organization-wide CloudTrail and AWS Config, sets up Identity Center, and lets you enable controls. Preventive controls are implemented as SCPs or RCPs, detective controls as Config rules, and proactive controls as CloudFormation hooks that check resources before creation. Account Factory provisions new accounts into an OU with the baseline applied.

Control Tower itself has no separate charge, but the services it turns on, especially AWS Config and log storage, do cost money. For learning, a design-only exercise works well: draw the OU tree, list the controls per OU and write the SCPs, then apply only the SCPs in a small test organization. A typical plan: sandbox accounts per person with a monthly budget, a shared dev account, a prod account with stricter controls, plus the Security accounts.

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Group accounts in OUs~30m
  2. 2
    Write a Region-restricting SCP~30m
  3. 3
    Explain what SCPs never grant~30m
  4. 4
    Set up a landing zone with Control Tower~30m
  5. 5
    Plan sandbox, dev and prod accounts~30m

Key points

  • Accounts are the strongest isolation boundary in AWS; use separate accounts for sandbox, dev and prod.
  • SCPs never grant permissions; they only cap what IAM policies in member accounts can allow.
  • SCPs do not apply to the management account or to service-linked roles, so keep workloads out of the management account.
  • Control Tower builds a landing zone with Log Archive and Audit accounts, Account Factory and preventive and detective controls.
  • Test a new SCP on a test OU before attaching it widely; a bad deny can lock everyone out.

Key terms

Tap a card to flip it. 0/6 known

Examples

A Region-restricting SCP for sandboxes

You want sandbox accounts to use only two EU Regions. Step 1: start from the AWS example SCP that denies all actions outside approved Regions. Step 2: trim the NotAction list to the global services you need and set your Regions. Step 3: create the policy and attach it to a Test OU containing one sandbox. Step 4: try to create an SQS queue in us-west-2; expect AccessDenied naming an explicit deny in a service control policy. Step 5: confirm IAM, Billing and the console still work, then attach to the Sandbox OU. Rollback: detach the policy.

json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "DenyOutsideApprovedRegions",
    "Effect": "Deny",
    "NotAction": ["iam:*", "organizations:*", "route53:*", "cloudfront:*",
      "sts:*", "support:*", "budgets:*", "ce:*", "health:*"],
    "Resource": "*",
    "Condition": { "StringNotEquals": {
      "aws:RequestedRegion": ["eu-west-1", "eu-west-2"] } }
  }]
}

Creating an OU and attaching a guardrail from the CLI

Working from the management account with an admin permission set. Step 1: find the root ID. Step 2: create a Sandbox OU. Step 3: create the SCP from the file above. Step 4: attach it to the OU and move the sandbox account in. Evidence: list-policies-for-target shows both FullAWSAccess and the new SCP. Cleanup for a lab organization: detach and delete the policy, move the account back to the root and delete the OU.

bash
ROOT=$(aws organizations list-roots --query "Roots[0].Id" --output text)
OU=$(aws organizations create-organizational-unit --parent-id "$ROOT" \
  --name Sandbox --query OrganizationalUnit.Id --output text)
POL=$(aws organizations create-policy --name sandbox-regions \
  --type SERVICE_CONTROL_POLICY --description "EU Regions only" \
  --content file://scp-regions.json --query Policy.PolicySummary.Id --output text)
aws organizations attach-policy --policy-id "$POL" --target-id "$OU"
aws organizations move-account --account-id 444455556666 \
  --source-parent-id "$ROOT" --destination-parent-id "$OU"
aws organizations list-policies-for-target --target-id "$OU" \
  --filter SERVICE_CONTROL_POLICY

Quick reference

  • Accounts are the strongest isolation boundary: separate sandbox, dev and prod
  • SCPs cap permissions for member accounts; they never grant any
  • SCPs skip the management account and service-linked roles
  • Region guardrail: Deny with NotAction for global services and aws:RequestedRegion
  • Test SCPs on a test OU before attaching to the root or busy OUs
  • Control Tower: landing zone, Log Archive and Audit accounts, controls, Account Factory
  • Control types: preventive (SCP/RCP), detective (Config rule), proactive (CloudFormation hook)

Common mistakes

  • Running applications in the management account, where SCPs cannot protect them.
  • Attaching an untested deny SCP at the organization root and blocking every account at once.
  • Expecting an SCP that allows s3:* to give users S3 access; they still need an IAM allow.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What happens if an SCP allows s3:* but a user has no IAM policies?

Question 2

2Which principal is not affected by SCPs?

Question 3

3Why does a Region-restricting SCP use NotAction for services such as IAM and CloudFront?

Question 4

4In Control Tower, a detective control is implemented as what?

Question 5

5Where should application workloads run in a landing zone?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Draw the OU tree and account list for the sample service: two developers, one shared dev environment and one production environment.

  2. Exercise 2medium

    Write an SCP for the Prod OU that denies stopping or deleting CloudTrail trails and disabling GuardDuty detectors, except for a role named platform-breakglass.

  3. Exercise 3hard

    In a lab organization, apply the Region SCP to a Test OU with one sandbox account, prove it blocks us-west-2 but allows eu-west-1 and IAM, then roll it back.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Does AWS Control Tower cost money?
There is no charge for Control Tower itself, but it enables services such as AWS Config, CloudTrail and S3 log storage that are billed. For practice, design the landing zone on paper and only apply SCPs in a small test organization.
Can I move an existing account into an organization?
Yes. The management account sends an invitation and the account accepts it. Control Tower can then enroll the account into a governed OU.
How many accounts should a small team start with?
A common minimum is a management account, a sandbox per person or a shared sandbox, one dev account and one prod account, plus Log Archive and Audit if you use Control Tower.
Can an SCP lock me out completely?
It can block member accounts, but not the management account, which can always detach the policy. That is one reason to keep management account access tightly controlled and never deploy workloads there.

Go deeper

ShareXLinkedInWhatsApp