Design the AWS account structure for a 50-engineer startup that's growing fast.
IntermediateScenarioMulti-env and multi-account
Answer
Situation read → One account for everything means no blast-radius limits, messy IAM and unclear costs. Separate accounts are the strongest isolation boundary AWS offers.
What I'd do →
- Set up AWS Organizations with Control Tower (or Terraform-managed equivalents) and IAM Identity Center for SSO.
- OU and account layout:
flowchart TD
Root["Management account - billing only"] --> Sec["Security OU"]
Root --> Infra["Infrastructure OU"]
Root --> Work["Workloads OU"]
Root --> Sbx["Sandbox OU"]
Sec --> LA["Log archive"]
Sec --> Audit["Security tooling"]
Infra --> Net["Network - Transit Gateway"]
Infra --> Tools["Shared services - CI, ECR"]
Work --> Dev["dev"]
Work --> Stg["staging"]
Work --> Prod["prod"]
- Apply SCPs per OU: deny unused regions, deny disabling CloudTrail and GuardDuty, deny leaving the org.
- Org-wide CloudTrail to the log archive account, GuardDuty and Security Hub delegated to the security account.
- Sandboxes with budgets and automatic cleanup for experiments.
Why → Account boundaries isolate failures, permissions and cost, and SCPs give guardrails no one inside an account can override.
Interview tip → Keep the management account for billing and org admin only, with no workloads; say that explicitly.
More on Multi-env and multi-account
How do you promote the same build from dev to staging to prod?BeginnerBugs keep passing staging and appearing in production. How do you make staging closer to prod?IntermediateHow do you structure Terraform for dev, staging and prod? Workspaces, directories or Terragrunt?IntermediateDevelopers want a preview environment for every pull request. How would you build it?AdvancedHelm values files or Kustomize overlays for per-environment config?BeginnerCI runs in a shared tools account and must deploy to dev, staging and prod accounts. How do you set up access?Intermediate