Explain it simply
Explain it simply
When a city opens a new housing estate, it lays roads, water, power, fire hydrants and cameras before any house is built. Every new house is connected to them automatically, and owners cannot rip them out.
A landing zone is that infrastructure for AWS accounts: a multi-account structure, central logging, a security account and guardrails, prepared in advance. AWS Control Tower is the managed service that sets up a landing zone and keeps it maintained. Every new account you create arrives with logging, controls and sign-in access already wired in.
Problem → Why → Solution
The problem — bootstrapping every account by hand
In the previous lesson you learned to put accounts into OUs and attach SCPs. Each new account still needs CloudTrail, AWS Config, delivery to the central log bucket, an audit role for the security team and sign-in access for engineers. Done by hand from a checklist, that takes days per account, and some step is always missed.
Worse, engineers start creating IAM users and access keys in every account so they can sign in. With 30 accounts a person may hold 30 sets of passwords and keys, and on the day an employee leaves nobody is sure which keys to delete.
# Run by hand for every new account... hopefully in the right account.
aws cloudtrail create-trail \
--name main \
--s3-bucket-name central-logs-111122223333
aws cloudtrail start-logging --name main
# Step 7 of 23: create a login for each engineer (long-lived keys!)
aws iam create-user --user-name alice
aws iam create-access-key --user-name alice
# Steps 8-23: Config recorder, audit role, budgets... (often skipped)Why this does not scale
Manual bootstrapping makes every account slightly different (configuration drift), so you can no longer prove to an auditor that every account has logging on. The long-lived access keys of IAM users are also one of the most common sources of leaked credentials.
Core concept — what Control Tower sets up
A landing zone is a concept, not a product: any well-architected, multi-account baseline you can build accounts on. You could build one yourself with Organizations, StackSets and scripts; Control Tower is AWS's managed, opinionated implementation. Existing accounts can be enrolled into Control Tower, which applies the baseline to them, so adopting it later does not mean recreating workloads.
Control Tower is set up in the organization's management account. Setup creates a Security OU and two shared accounts. The Log Archive account stores the CloudTrail and AWS Config logs of every account centrally in S3, out of reach of workload teams. The Audit account is the security team's workspace: it has cross-account access to every account and is the natural delegated administrator for tooling such as Security Hub.
Control Tower also governs regions: it deploys logging and controls only in the governed regions you choose, and an optional region deny control can block the rest.
- Control (guardrail)
- A governance rule enabled on an OU that applies to every account under it. Control Tower classifies controls as mandatory, strongly recommended or elective.
| Control type | When it acts | Implemented with |
|---|---|---|
| Preventive | Blocks the action before it happens | SCPs (and RCPs on the resource side) |
| Detective | Finds non-compliant resources after the fact | AWS Config rules |
| Proactive | Checks resources before CloudFormation provisions them | CloudFormation hooks |
The three types complement each other. Preventive controls are the strongest, but they can only deny API calls, so they express configuration rules such as 'every bucket must be encrypted' poorly. Detective controls catch those, but only after the problem exists. Proactive controls catch resources deployed through CloudFormation before they exist, but cannot see resources created directly in the console or CLI.
The last piece is Account Factory, a Service Catalog product that creates new accounts in an enrolled OU with the full landing-zone baseline. Sign-in access is handled by IAM Identity Center.
CONTROL TOWER LANDING ZONE
--------------------------
+-----------------------------+
| Management account |
| Control Tower, Org, IdC |
+--------------+--------------+
|
+-----------------------+-----------------------+
| | |
[ OU: Security ] [ OU: Workloads ] [ OU: Sandbox ]
| | | | |
Log Archive Audit orders-prod orders-dev alice-sbx
^ | | | |
| +--------> cross-account audit role --->+
| | | |
+--- CloudTrail + Config logs from every account ----+- Org + OU structure
- Log Archive + Audit accounts
- Controls on OUs
- Account Factory vending
- Identity Center access
Because controls live on OUs, placing an account in an OU is all it takes to govern it — no account-by-account configuration.
The enable-control pattern
aws controltower enable-control \
--control-identifier "$CONTROL_ARN" \
--target-identifier "$OU_ARN"
# -> returns an operationIdentifier; poll it with get-control-operationThe control ARN says which control; the target is the OU's ARN. The operation is asynchronous, so you poll its status until it has been deployed to every account in the OU.
Govern a Workloads OU with controls
Assume an organization with a Control Tower landing zone and a registered Workloads OU. The script enables two strongly recommended controls — a preventive control that blocks creating access keys for the root user, and a detective control that checks whether EBS volumes attached to EC2 instances are encrypted. It then waits for each operation and lists the controls enabled on the OU. Run it from the management account.
#!/usr/bin/env bash
set -euo pipefail
OU_ARN="arn:aws:organizations::111122223333:ou/o-a1b2c3d4e5/ou-a1b2-workload1"
PREFIX="arn:aws:controltower:us-east-1::control"
for CONTROL in AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS AWS-GR_ENCRYPTED_VOLUMES; do
OP_ID=$(aws controltower enable-control \
--control-identifier "$PREFIX/$CONTROL" \
--target-identifier "$OU_ARN" \
--query operationIdentifier --output text)
# Deployment to every account in the OU is asynchronous
while true; do
STATUS=$(aws controltower get-control-operation \
--operation-identifier "$OP_ID" \
--query controlOperation.status --output text)
[ "$STATUS" != "IN_PROGRESS" ] && break
sleep 20
done
echo "$CONTROL: $STATUS"
done
aws controltower list-enabled-controls \
--target-identifier "$OU_ARN" \
--query 'enabledControls[].controlIdentifier' --output textCode breakdown
- OU_ARN
ou/o-a1b2c3d4e5/ou-a1b2-workload1Controls are enabled on a registered OU, not on individual accounts. The ARN contains both the organization ID and the OU ID.
- AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS
A preventive control implemented as an SCP: it denies the API call that would create access keys for the root user in member accounts.
- AWS-GR_ENCRYPTED_VOLUMES
A detective control implemented as an AWS Config rule. It does not block unencrypted volumes; it reports them as non-compliant on the Control Tower dashboard.
- get-control-operation
--query controlOperation.statusStatus moves from IN_PROGRESS to SUCCEEDED or FAILED. On OUs with many accounts this can take several minutes, so the script polls.
Sample output (timing depends on how many accounts are in the OU)
AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS: SUCCEEDED
AWS-GR_ENCRYPTED_VOLUMES: SUCCEEDED
arn:aws:controltower:us-east-1::control/AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS arn:aws:controltower:us-east-1::control/AWS-GR_ENCRYPTED_VOLUMESIAM Identity Center permission sets
IAM Identity Center gives each person a single identity, either in its own directory or connected to an external IdP such as Okta or Microsoft Entra ID. A permission set is a template of policies. When you assign a group to an account with a permission set, Identity Center creates an IAM role starting with AWSReservedSSO_ in that account.
Users sign in through the portal or with aws sso login and receive only temporary credentials that expire with the session. With no long-lived access keys there is far less to leak, and disabling someone in the IdP removes their access to every account at once.
INSTANCE_ARN=$(aws sso-admin list-instances \
--query 'Instances[0].InstanceArn' --output text)
PS_ARN=$(aws sso-admin create-permission-set \
--instance-arn "$INSTANCE_ARN" \
--name ReadOnly \
--session-duration PT4H \
--query 'PermissionSet.PermissionSetArn' --output text)
aws sso-admin attach-managed-policy-to-permission-set \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN" \
--managed-policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess
# Give the "orders-devs" group read-only access to the orders-prod account
aws sso-admin create-account-assignment \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN" \
--target-type AWS_ACCOUNT \
--target-id 444455556666 \
--principal-type GROUP \
--principal-id "$GROUP_ID"Account Factory, AFT, and when Control Tower is overkill
Account Factory is used from the console or through the Service Catalog API, with an account name, email, OU and first Identity Center user. Teams vending hundreds of accounts often use Account Factory for Terraform (AFT) instead: account requests are Terraform files in a Git repository, and a pipeline creates each account and applies per-account customizations such as a VPC or baseline roles.
Control Tower is not always the answer. A startup with two or three accounts is well served by Organizations, a few SCPs and Identity Center. Control Tower adds AWS Config costs and expects you to follow its rules, because editing its managed resources from outside causes drift. If you already have a heavily customized organization, or you work in a regulated industry, also compare solutions such as Landing Zone Accelerator on AWS.
In production
In real production
In practice a platform team owns the landing zone, and application teams request accounts through a ticket or a pull request to the AFT repository. When the new account arrives, its logs already flow to Log Archive, Security Hub and GuardDuty findings already reach the Audit account, and the team's Identity Center groups are already assigned the right permission sets. Going from 'two weeks per account' to 'under an hour' is common.
Control Tower itself needs maintenance. When AWS releases a new landing zone version, the platform team plans and applies the update. Drift — for example someone moving an account into an unregistered OU from the Organizations console — is watched on the dashboard and repaired. Buckets in the Log Archive account usually get lifecycle rules and retention periods tuned to compliance requirements.
Common mistakes
Common mistakes
Editing Control Tower-managed resources from outside
Editing the SCPs Control Tower created directly in the Organizations console, deleting its IAM roles, or moving accounts between OUs from outside causes drift and can break landing zone updates. Write your own SCPs as separate policies and make structural changes through Control Tower.
Assuming a detective control prevents anything
Teams enable the EBS encryption detective control and assume unencrypted volumes can no longer exist. A detective control only reports. To actually prevent the problem, pair it with a preventive or proactive control or an account setting such as EBS encryption by default, and give someone ownership of turning findings into tickets.
Using Log Archive or Audit for workloads
Deploying applications into the shared accounts 'because they already exist' destroys the security boundary — an attacker who compromises the workload may then tamper with the logs. Keep these accounts for the security team with minimal access.
💰 Cost & Cleanup
Control Tower has no extra charge of its own, but you pay for the services it uses: AWS Config (per configuration item recorded and per rule evaluation), S3 storage for CloudTrail and Config logs, and KMS if you enable encryption with your own key. In accounts with heavy resource churn, Config cost can be noticeable. Decommissioning a landing zone is a major operation, so never set one up for practice in your company's real organization — use a separate practice management account. Remove this lesson's controls and permission set with the commands below.
Clean up when you are done
for CONTROL in AWS-GR_RESTRICT_ROOT_USER_ACCESS_KEYS AWS-GR_ENCRYPTED_VOLUMES; do
aws controltower disable-control \
--control-identifier "$PREFIX/$CONTROL" \
--target-identifier "$OU_ARN"
done
aws sso-admin delete-account-assignment \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN" \
--target-type AWS_ACCOUNT \
--target-id 444455556666 \
--principal-type GROUP \
--principal-id "$GROUP_ID"
aws sso-admin delete-permission-set \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN"Mini challenge
Access for on-call engineers
On-call engineers need read-only access to production accounts to investigate incidents, but the security team does not want long sessions. Grant this access with Identity Center.
- Create an `OnCallReadOnly` permission set with a one-hour session duration
- Attach the AWS managed `ReadOnlyAccess` policy
- Assign the `oncall` group to account `444455556666`
Expected: On-call engineers see the `OnCallReadOnly` role for the orders-prod account in the portal, and the session expires after one hour. Any write action returns AccessDenied.
Show hint
Session duration uses ISO-8601 format (`PT1H`). Find the group ID with `aws identitystore list-groups`.
Show solution
INSTANCE_ARN=$(aws sso-admin list-instances \
--query 'Instances[0].InstanceArn' --output text)
STORE_ID=$(aws sso-admin list-instances \
--query 'Instances[0].IdentityStoreId' --output text)
GROUP_ID=$(aws identitystore list-groups \
--identity-store-id "$STORE_ID" \
--query "Groups[?DisplayName=='oncall'].GroupId" --output text)
PS_ARN=$(aws sso-admin create-permission-set \
--instance-arn "$INSTANCE_ARN" \
--name OnCallReadOnly \
--session-duration PT1H \
--query 'PermissionSet.PermissionSetArn' --output text)
aws sso-admin attach-managed-policy-to-permission-set \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN" \
--managed-policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess
aws sso-admin create-account-assignment \
--instance-arn "$INSTANCE_ARN" \
--permission-set-arn "$PS_ARN" \
--target-type AWS_ACCOUNT \
--target-id 444455556666 \
--principal-type GROUP \
--principal-id "$GROUP_ID"Quick quiz 1 / 3
Quick quiz 2 / 3
Quick quiz 3 / 3
What to remember
- A landing zone is a prepared baseline: multi-account structure, central logging, security accounts and guardrails
- Log Archive stores the logs; Audit is the security team's cross-account workspace
- Combine preventive (SCP), detective (Config) and proactive (CloudFormation hook) controls on OUs
- IAM Identity Center permission sets replace IAM users with temporary credentials
- With only a few accounts, Organizations + SCPs + Identity Center may be enough instead of Control Tower
What is AWS Control Tower? — AWS Documentation
IAM Identity Center permission sets — AWS Documentation
Account Factory for Terraform (AFT) overview — AWS Documentation