Building the Right Foundation: A Multi-Account AWS Environment for Growing Startups
Foundational pillars for multi-account AWS setup - account structure, identity, networking, security, backup, tagging, and IaC
Setting up a multi-account AWS environment the right way from day one saves months of painful refactoring. This post covers the foundational pillars every startup should put in place early, while the environment is still small and changes are cheap. Each section covers what to do, why it matters, and which AWS services make it easier.
1. Account Structure with AWS Organizations
AWS recommends separating workloads into multiple accounts for isolation, blast radius reduction, and clear governance ( Organizing Your AWS Environment Using Multiple Accounts ).
Recommended OUs:
• Security OU: Centralized security tooling (CloudTrail, GuardDuty, Config, Security Hub)
• Infrastructure OU: Shared services (container registries, networking, CI/CD)
• Workloads OU: Production and non-production accounts. Subdivide later as needed.
• Sandbox OU: Experimentation with limited scope
AWS Control Tower automates landing zone setup with built-in guardrails and Account Factory for provisioning new accounts consistently.
The management account should contain no workloads. Keep it clean for organization-level governance only.
2. Identity and Access: Federated from the Start
If you use an external IdP (Okta, Azure AD, Google Workspace), set up AWS IAM Identity Center immediately.
Why this matters early:
• Users authenticate via your IdP and assume Permission Sets (IAM Roles) in target accounts
• No IAM Users with long-lived credentials to manage or rotate
• Offboarding = remove from IdP group. Access revoked immediately across all accounts.
• Group-based access: map IdP groups to Permission Sets for role-based access control
Do this before you have 10 engineers with individual IAM Users that become impossible to audit.
3. Network Foundation: Plan Before You Build
The most common regret: every VPC uses the same default CIDR (10.0.0.0/16) and you discover you cannot peer them, connect them via Transit Gateway, or route between accounts.
The Well-Architected Reliability Pillar states: "The IP address ranges of each of your VPCs must not overlap when peered, connected via Transit Gateway, or connected over VPN" ( REL02-BP05 ).
Amazon VPC IPAM solves this:
• Define an organization-wide address pool
• Allocate non-overlapping CIDRs automatically per VPC
• Enforce rules so no account can create a conflicting range
• Monitor utilization across all accounts and regions
Practical sizing: /20 per VPC (4,096 addresses, sufficient for containerized workloads), /24 per subnet. This gives you room for hundreds of VPCs without overlap.
Additional networking foundations:
• Transit Gateway for cross-account connectivity when you need accounts to communicate
• PrivateLink endpoints for shared services (ECR, Secrets Manager, S3) to avoid NAT Gateway costs and keep traffic private
• Plan your routing before you deploy workloads. Changing network topology later often requires downtime.
4. Security Services: Turn on Day One
These cost little or nothing and should be enabled organization-wide from the start:
• AWS CloudTrail (organization trail): Every API call logged centrally in the Security OU. Essential for audit, incident response, and IAM Access Analyzer.
• Amazon GuardDuty: Threat detection across all accounts. Enable org-wide with delegated administrator.
• AWS Config: Resource configuration recording and compliance rules.
• AWS Security Hub: Aggregated security findings from all accounts. Enable CIS and AWS Foundational Security Best Practices standards.
• SCPs (Service Control Policies): Preventive guardrails at the OU level. Examples: deny public S3 buckets, enforce EBS/S3 encryption, restrict to approved regions, prevent disabling CloudTrail.
The reason to do this now: enabling these services later means backfilling configuration history and missing early-stage threats. The cost is negligible; the value of having audit history from day one is significant.
5. Lightweight Backup: Protection Without Full DR Cost
Full disaster recovery (multi-region active-active, RTO under minutes) is expensive for early-stage startups. But having zero backup strategy is how you lose production data permanently.
AWS Backup provides a middle ground:
• Create a backup plan: daily automated snapshots, 14-day retention, delete older backups automatically
• Assign resources by tag (e.g., tag key "backup" = "daily")
• Covers RDS, EBS, EFS, DynamoDB, S3 in one policy
• Cross-region copy rule for critical databases (low cost, high value)
Practical startup configuration:
• RDS: Automated backups with 14-day retention. Enable point-in-time recovery (PITR, 5-minute granularity, included with RDS at no extra cost).
• S3: Versioning on critical buckets. Optional Cross-Region Replication for production data.
• EBS: Daily snapshot via AWS Backup, 7-14 day lifecycle.
• DynamoDB: Point-in-time recovery enabled (35-day window, ~$0.20/GB/month).
This is not full BCDR. It is enough to recover from accidental deletion, corruption, or a bad deployment. Full resilience comes later when the business can justify the cost.
6. Tagging Strategy: Set It Before You Have 500 Untagged Resources
Tags are how you answer "who owns this?", "what environment is this?", and "why is our bill higher this month?" ( AWS Tagging Best Practices ).
Minimum tag set for startups:
• Environment (prod, staging, dev, sandbox)
• Owner (team or individual responsible)
• Service / Application (which product or workload)
• CostCenter (for billing attribution as you grow)
Enforce via SCPs or AWS Config rules (e.g., deny resource creation without required tags). Activate cost allocation tags in Billing so they appear in Cost Explorer.
The mistake: "we'll tag everything later." Later never comes, and by then you have 500 resources with no metadata and no way to attribute cost.
7. Infrastructure as Code: Codify the Base
Manage your foundational layers (account structure, networking, security policies, IAM roles) as code from the start using CloudFormation, Terraform or Pulumi.
Benefits for startups:
• Replicability: Stand up a new environment (staging, new region, new product) by running the same code
• Change management: Every infrastructure change goes through version control and review
• Auditability: Git history shows who changed what and when
• Disaster recovery: If an account is compromised, you can rebuild the foundation from code
For CI/CD tools (Terraform Cloud, GitHub Actions): use OIDC federation instead of stored credentials. Each workspace assumes a role via short-lived token. No IAM Users, no access keys to rotate. Start with broad permissions during initial build, then use IAM Access Analyzer to generate least-privilege policies from actual CloudTrail usage.
Getting Started
The order matters. Do these in sequence:
1. Enable AWS Organizations, create management account (no workloads)
2. Set up Control Tower for landing zone with Security OU + Sandbox OU
3. Create Infrastructure OU and Workloads OU
4. Configure IAM Identity Center with your IdP
5. Plan your CIDR allocation and set up VPC IPAM before creating VPCs
6. Enable CloudTrail (org trail), GuardDuty, Config, Security Hub organization-wide
7. Define tagging strategy and enforce with SCPs or Config rules
8. Set up AWS Backup with default plan (daily, 14-day retention)
9. Codify the above in CloudFormation/Terraform/Pulumi for replicability
References
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article