Project 3: Secure Multi-Account Landing Zone with Disaster Recovery and Cost Controls
Goal
A company with several teams needs a safe, governed AWS foundation: separate accounts, central logs, guardrails nobody can remove, single sign-on, backups with a recovery Region, and cost visibility. This project ties together many topics from the course.
Target Account Structure
text
Management account (billing, Organizations, Control Tower only; no workloads)
├─ OU: Security
│ ├─ log-archive (central CloudTrail/Config logs, S3, write-once)
│ └─ security-tooling (GuardDuty, Security Hub, Inspector, Macie delegated admin)
├─ OU: Infrastructure
│ ├─ network-hub (Transit Gateway, Direct Connect/VPN, shared DNS, inspection VPC)
│ └─ shared-services (CI/CD, AMI builds, artifact stores)
├─ OU: Workloads
│ ├─ OU: Prod → app1-prod, app2-prod
│ └─ OU: NonProd → app1-dev, app1-test
├─ OU: Sandbox → individual experiment accounts (strict budget, auto-cleanup)
└─ OU: Suspended → closed accounts (deny everything)
Design Decisions
| Topic | Decision | Reason |
| Accounts | Separate by environment and workload | Blast radius, billing clarity, limits per account |
| Home Region | One primary Region (for example ap-south-1) and a recovery Region (for example ap-southeast-1) | Data residency and DR |
| Access | IAM Identity Center with groups and permission sets, connected to the company directory | No long-lived IAM users, MFA, central audit |
| Guardrails | SCPs at OU level | Prevent dangerous actions even by account admins |
| Logging | Organization trail and Config aggregator to the log-archive bucket | Tamper-resistant evidence |
| Security services | Delegated admin in security-tooling account, auto-enable for new accounts | Same baseline everywhere |
| Network | Transit Gateway hub with route tables for isolation, central egress or inspection | Controlled connectivity |
| Backup | AWS Backup organization policy with cross-Region copy and Vault Lock | Ransomware and DR protection |
| Cost | Tag policies, Budgets, anomaly detection, CUR to S3 | Showback and control |
Step 1: Create the Landing Zone
- Create or use a clean management account. Enable MFA on the root user and store its recovery details safely
- Open AWS Control Tower and set up the landing zone: choose the home Region and governed Regions, create the Security OU, log archive and audit accounts, and enable KMS encryption and an organization CloudTrail
- Enable IAM Identity Center, connect your identity provider (SAML/SCIM) or use the built-in directory, create groups such as
Admins, Developers, Auditors
- Create OUs and enroll or create accounts using Account Factory (or Account Factory for Terraform / Customizations)
- Turn on mandatory and strongly recommended controls (guardrails) for each OU
Step 2: Service Control Policies
json
{
"Version": "2012-10-17",
"Statement": [
{"Sid": "DenyLeavingOrganization", "Effect": "Deny", "Action": "organizations:LeaveOrganization", "Resource": "*"},
{"Sid": "ProtectSecurityServices", "Effect": "Deny",
"Action": ["cloudtrail:StopLogging", "cloudtrail:DeleteTrail", "config:StopConfigurationRecorder", "config:DeleteConfigurationRecorder",
"guardduty:DeleteDetector", "guardduty:DisassociateFromMasterAccount"],
"Resource": "*"},
{"Sid": "DenyRootUser", "Effect": "Deny", "Action": "*", "Resource": "*",
"Condition": {"StringLike": {"aws:PrincipalArn": "arn:aws:iam::*:root"}}},
{"Sid": "RegionLock", "Effect": "Deny",
"NotAction": ["iam:*", "organizations:*", "route53:*", "cloudfront:*", "support:*", "budgets:*", "waf:*", "sts:*"],
"Resource": "*",
"Condition": {"StringNotEquals": {"aws:RequestedRegion": ["ap-south-1", "ap-southeast-1"]}}},
{"Sid": "RequireEncryptedEBS", "Effect": "Deny", "Action": "ec2:CreateVolume", "Resource": "*",
"Condition": {"Bool": {"ec2:Encrypted": "false"}}}
]
}
- SCPs never grant permissions, they set the maximum allowed
- They do not affect the management account, which is why it must not run workloads
- Test on a sandbox OU first. Keep the default
FullAWSAccess policy attached, or an explicit allow list will block everything
- Prefer deny lists (guardrails) over allow lists for simplicity
Step 3: Security Baseline
bash
# from the management account: choose the security-tooling account as delegated admin
aws organizations enable-aws-service-access --service-principal guardduty.amazonaws.com
aws guardduty enable-organization-admin-account --admin-account-id 222222222222
aws securityhub enable-organization-admin-account --admin-account-id 222222222222
aws inspector2 enable-delegated-admin-account --delegated-admin-account-id 222222222222
aws macie2 enable-organization-admin-account --admin-account-id 222222222222
# in security-tooling: auto-enable for new member accounts
aws guardduty update-organization-configuration --detector-id $DET --auto-enable-organization-members ALL
| Service | Role in the baseline |
| CloudTrail (org trail) | Every API call in every account to the log archive |
| AWS Config + conformance packs | Compliance rules, drift detection |
| GuardDuty | Threat detection across accounts |
| Security Hub | Central findings and standards (AWS Foundational, CIS) |
| Inspector, Macie | Vulnerabilities, sensitive data in S3 |
| IAM Access Analyzer | External and unused access findings |
| Firewall Manager | Apply WAF and security group policies organization-wide |
Step 4: Network Hub
- In the network-hub account create a Transit Gateway and share it with the organization using AWS RAM
- Create separate TGW route tables: one for prod, one for non-prod, one for shared services, so prod and dev cannot talk to each other
- Attach each workload VPC (non-overlapping CIDRs planned with IPAM)
- Connect on premises with Direct Connect plus Site-to-Site VPN backup
- Send internet-bound traffic through a central egress or inspection VPC (Network Firewall or NAT) if policy requires
- Use Route 53 Resolver endpoints and shared private hosted zones for hybrid DNS
Step 5: Backup and Disaster Recovery
json
{
"plan": {
"BackupPlanName": "org-standard",
"Rules": [{
"RuleName": "daily-35d-copy",
"TargetBackupVaultName": "org-vault",
"ScheduleExpression": "cron(0 18 * * ? *)",
"Lifecycle": {"DeleteAfterDays": 35},
"CopyActions": [{
"DestinationBackupVaultArn": "arn:aws:backup:ap-southeast-1:333333333333:backup-vault:dr-vault",
"Lifecycle": {"DeleteAfterDays": 35}}]
}]
}
}
- Create the plan as an AWS Backup organization policy targeting resources with tag
backup=daily
- Copy to a separate account and Region (the recovery vault) so a compromised workload account cannot delete the copies
- Enable Backup Vault Lock (compliance mode) for immutability
- Test restores on a schedule. A backup you never restored is only a hope
| App tier | DR strategy | RTO / RPO target |
| Tier 0 (payments, core) | Warm standby or multi-site: Aurora Global Database, replicated ASG at minimum size, Route 53 failover | Minutes / seconds |
| Tier 1 (important) | Pilot light: database replicated, app servers as AMIs/IaC started during failover | Under 1 hour / minutes |
| Tier 2 (internal) | Backup and restore with IaC | Hours / up to 24 hours |
text
Failover runbook (pilot light)
1. Declare disaster (named decision maker)
2. Promote the replica database in the recovery Region
3. Deploy infrastructure stack from the pipeline (CloudFormation/Terraform) in recovery Region
4. Scale the ASG to production size
5. Switch Route 53 record (or let health-check failover do it)
6. Validate with smoke tests
7. Communicate status. Later: fail back after data resync
Step 6: Cost Controls
bash
aws budgets create-budget --account-id 111111111111 --budget '{
"BudgetName":"org-monthly","BudgetLimit":{"Amount":"5000","Unit":"USD"},
"TimeUnit":"MONTHLY","BudgetType":"COST"}' \
--notifications-with-subscribers '[{"Notification":{"NotificationType":"FORECASTED","ComparisonOperator":"GREATER_THAN","Threshold":90,"ThresholdType":"PERCENTAGE"},
"Subscribers":[{"SubscriptionType":"EMAIL","Address":"finops@example.com"}]}]'
aws ce create-anomaly-monitor --anomaly-monitor '{"MonitorName":"all-services","MonitorType":"DIMENSIONAL","MonitorDimension":"SERVICE"}'
- Tag policy in Organizations requires keys such as
owner, project, env, cost-center, and activates them as cost allocation tags
- Per-account budgets with alerts, sandbox accounts with a low limit and automatic cleanup (for example with a scheduled
aws-nuke style job or Control Tower lifecycle)
- Cost Anomaly Detection, Cost and Usage Report to S3 queried with Athena
- Savings Plans purchased centrally to benefit all accounts (check sharing settings)
- Monthly showback report per team
Step 7: Validate the Foundation
| Check | Expected |
| Create a new account with Account Factory | Baseline (logging, security services, VPC, budgets) applied automatically |
From a dev account try cloudtrail:StopLogging | Denied by SCP |
| Launch an unencrypted EBS volume | Denied by SCP or flagged by Config |
| Create a resource in a non-approved Region | Denied by Region SCP |
| Sign in as a developer using Identity Center | Temporary credentials, MFA, only the allowed permission set |
| Delete a recovery point in the vault with Vault Lock | Denied |
| Run the DR runbook in a game day | Meets the target RTO and RPO. Update the runbook |
Operating the Platform
- Treat the landing zone as code: Control Tower customizations, Terraform or CloudFormation StackSets in Git with reviews
- Use break-glass access with strict alerts for the management account and root users
- Review Security Hub, Config and Access Analyzer findings weekly
- Patch with Systems Manager and rebuild AMIs regularly
- Hold regular game days for DR and security incidents
Common Mistakes
| Mistake | Better approach |
| Running workloads in the management account | Keep it only for governance and billing |
| One big account for everything | Separate by environment and workload |
| Strict SCPs applied to everything at once | Test in a sandbox OU, roll out gradually |
| Overlapping CIDR ranges | Plan with IPAM before building |
| Backups in the same account and Region as the data | Copy to a separate account and Region with Vault Lock |
| No tags | Tag policies and Config rules from day one |
Practice Extensions
- Write the Region-lock SCP for your own Regions and test it in a sandbox
- Create permission sets for Admin, Developer and ReadOnly with different session durations
- Build the Transit Gateway with separate prod and non-prod route tables and prove that isolation works
- Run a DR game day: restore a database backup in the recovery Region and measure the time
- Create a monthly cost report grouped by the
project tag using Athena on the CUR
Conclusion
A solid AWS foundation uses many accounts under Organizations and Control Tower, SSO with Identity Center, preventive SCPs, central logging, delegated security services, a Transit Gateway network hub, immutable cross-Region backups with a tested DR plan, and tag-driven cost controls. Build it as code and test it regularly.
Quick Summary: goal; account structure; decisions; Control Tower; SCP JSON; security baseline; network hub; backup + DR; cost controls; validation; operations; mistakes.