Introduction
The postmortem is always the same. A team spent three months "setting up AWS," burned through $40K of runway on ad-hoc infrastructure, and now needs to tear it down and start over. Nobody got paged. Nothing went down in production. But the cloud project still failed, and it failed in week one, not week twelve.
Most cloud project failure happens before a single workload runs. Not because of bad technology choices or the wrong instance type. It happens because nobody agreed on who owns the AWS account, nobody designed the network before punching holes in security groups, and nobody thought about IAM until a developer asked for "full access so they could just get moving."
This post breaks down the four pre-launch failure modes we see repeatedly: ownership ambiguity, absent IAM strategy, missing network design, and no governance model. If you're about to start a greenfield AWS buildout, or you've just inherited one that already looks shaky, this is the checklist you need.
The Real Reason Cloud Projects Fail Early
Here's the counterintuitive part: cloud infrastructure is easy to provision and that's exactly what makes it dangerous.
Spinning up an EC2 instance takes 90 seconds. Creating a VPC takes less. The AWS console is so frictionless that teams get weeks into a buildout before realizing they've created a sprawling mess with no coherent structure. Nobody made a wrong technical decision. They just never made any decisions: they let the defaults decide for them.
The pattern I see most often: a startup or enterprise team gets greenlit for cloud adoption. They assign a junior engineer (or sometimes a developer who "has done some AWS stuff") to "set up the environment." That person creates a single AWS account, uses the root user, starts launching resources in whatever region the console defaulted to, and puts everything in the default VPC because it was already there.
Six weeks later, you have 47 security groups with names like launch-wizard-3, three different S3 buckets that may or may not contain sensitive data, an IAM user named admin with AdministratorAccess whose access key has been rotated zero times, and a team of five developers all sharing one set of credentials because "we'll clean it up later."
The technical debt here isn't in the application code. It's in the invisible foundation (the account structure, the network topology, the identity model), and it's almost always cheaper to rebuild than to remediate.
AWS Deep Dive: The Four Failure Modes
1. Ownership Without Accountability: The Single-Account Trap
The first and most pervasive mistake is treating AWS like a single shared environment. One account, one VPC, one IAM policy landscape where every engineer has just enough access to cause problems they don't know they're causing.
AWS Organizations exists specifically to address this. A well-structured multi-account strategy gives you hard blast-radius boundaries, clean billing separation, and the ability to enforce SCPs (Service Control Policies) at the organizational unit level. Without it, you're relying entirely on IAM policies inside a single account to prevent your dev team's experiments from touching production data.
A minimal starting structure for a growth-stage company looks like this:
- Management account, billing only, no workloads, root access locked with MFA and hardware key
- Security account, CloudTrail aggregation, GuardDuty master, Config aggregator
- Shared services account, Transit Gateway, DNS, internal tooling
- Dev account, liberal IAM, disposable resources, SCPs preventing data exfiltration
- Staging account, production-parity config, tighter IAM
- Production account, locked-down, change-controlled, alerts on everything
One non-obvious gotcha: when you enable AWS Organizations, existing standalone accounts can be invited as member accounts, but they retain their own root credentials and billing history. If you're inheriting a legacy single-account setup, the migration to multi-account isn't automatic. You'll be standing up new accounts and migrating workloads, plan for it upfront.
The SCP that I always apply to non-production OUs on day one:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyLeavingOrg",
"Effect": "Deny",
"Action": "organizations:LeaveOrganization",
"Resource": "*"
},
{
"Sid": "DenyRootUser",
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:PrincipalArn": "arn:aws:iam::*:root"
}
}
}
]
}
This doesn't solve everything. But it makes the two most catastrophic mistakes (someone accidentally removing a member account from the org, and someone using root credentials to bypass your controls), impossible at the policy layer.
2. IAM Strategy: The Access Control Disaster That's Hiding in Plain Sight
IAM is where cloud projects fail silently. Everything looks fine until someone runs aws s3 sync in the wrong direction or a compromised CI/CD credential gets used to enumerate your entire account.
The mistake is almost always one of two patterns:
Pattern A: Too permissive. A developer needs to deploy a Lambda function. Instead of scoping permissions to lambda:CreateFunction, lambda:UpdateFunctionCode, and the specific execution role, they get lambda:* or, and I've seen this more than I'd like to admit, AdministratorAccess "temporarily" that never gets revoked.
Pattern B: Too reactive. Permissions are added one error at a time. The developer hits an access denied, adds the permission, repeats. Two weeks later they have 40 permissions stapled together with no clear intention and no way to audit what's actually needed.
The right approach is to design IAM roles around job functions and deployment pipelines before anyone touches the console. That means:
- Human access via IAM Identity Center (SSO), never long-lived IAM users with access keys
- Service roles scoped to least privilege defined in IaC before the service is deployed
- CI/CD pipelines using OIDC federation, not access keys stored in GitHub secrets
The OIDC federation piece matters more than most teams realize. GitHub Actions, GitLab CI, and CircleCI all support OIDC tokens that AWS STS can validate. Instead of a static access key that can be stolen, rotated manually, and forgotten, you get short-lived credentials that are issued per-job and expire automatically.
# GitHub Actions OIDC example
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789012:role/GitHubActionsDeployRole
aws-region: us-east-1
The corresponding trust policy on the IAM role:
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::123456789012:oidc-provider/token.actions.githubusercontent.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
},
"StringLike": {
"token.actions.githubusercontent.com:sub": "repo:YourOrg/YourRepo:*"
}
}
}
The non-obvious limit here: IAM roles have a maximum session duration of 12 hours. If your CI/CD pipeline runs longer than that, unlikely but possible with large test suites or multi-stage deployments, credentials will expire mid-run. Set --duration-seconds explicitly and monitor for session expiry errors in long-running pipelines.
3. VPC Design: The Network You Can't Easily Change Later
CIDR ranges are not a detail you can figure out later. They are a founding decision that will constrain every network topology choice you make for the next several years.
The most common mistake: picking 10.0.0.0/16 for the first VPC because it was in the tutorial. Then the second VPC. Then the third. Then you need to peer them, or connect them via Transit Gateway, and overlapping CIDRs make that impossible without NAT gymnastics that nobody wants to maintain.
A proper IP address management (IPAM) strategy before you create a single VPC:
- Allocate non-overlapping supernets per account and per region
- Leave room for future accounts, if you're starting with 6 accounts, plan for 20
- Use
/21or larger per VPC to avoid subnet exhaustion as you add AZs and tiers
For most multi-account setups, I use a pattern like:
- Production:
10.0.0.0/16 - Staging:
10.1.0.0/16 - Dev:
10.2.0.0/16 - Shared Services:
10.3.0.0/16
...with room left for future accounts in the 10.4.0.0/16 through 10.15.0.0/16 range.
Subnet tier design also gets skipped. The default VPC has a flat structure with everything in public subnets. Real workloads need three tiers: public (load balancers, NAT Gateways), private-app (EC2, ECS, Lambda in VPC), and private-data (RDS, ElastiCache, with no route to the internet at all). Design this in Terraform or CloudFormation before you deploy anything.
One behavior that bites teams: VPC endpoints. If your Lambda functions are in a private subnet and need to call S3 or DynamoDB, and you don't have VPC Gateway Endpoints configured, that traffic routes through the NAT Gateway. At scale, that's real money. A Gateway Endpoint for S3 and DynamoDB costs nothing and removes that traffic from your NAT Gateway entirely.
Enjoying this so far?
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.
Tradeoffs & Decision Framework
There's no single right structure for every team. The tradeoffs depend on where you are in your growth curve.
Early-stage startup (1–5 engineers, single product): Two accounts minimum, dev and production. Don't over-engineer the org structure yet. Focus on getting the networking right and keeping IAM sane. The cost of a full multi-account setup at this stage is overhead your team doesn't have capacity to manage.
Growth-stage company (10–50 engineers, multiple products or environments): This is where the multi-account structure pays off. You can no longer afford the blast radius of a single account. Add a security account immediately for centralized logging. Use IAM Identity Center for human access, managing individual IAM users across five accounts is a support nightmare.
Enterprise / regulated industry: You may need dedicated accounts per compliance boundary (PCI, HIPAA, SOC 2 in-scope vs out-of-scope). SCPs become critical for enforcement, not just policy documentation. Expect account counts in the 20–100 range. AWS Control Tower is worth evaluating here, though it adds operational complexity and has meaningful guardrails that can surprise teams who haven't read the fine print on landing zone behavior.
The honest tradeoff with multi-account: it adds operational surface area. Cross-account IAM roles, resource sharing via AWS RAM, and centralized logging are all additional things that can break. But the cost of not having account isolation at scale (the blast radius of a single compromised credential, the inability to enforce environment parity, the budget opacity), is almost always worse.
Lessons From the Field
1. The root user will eventually be used if you don't lock it down immediately. After inheriting a six-month-old AWS environment for a Series A fintech, the root user had no MFA enabled and had been used 14 times in the prior 90 days, mostly to reset IAM user passwords. Enable MFA on root on day one. Then don't log in again.
2. A VPC you designed for one region will be wrong when you need a second one.
Watched a team build a perfectly reasonable VPC in us-east-1 with 10.0.0.0/16, then have to stand up disaster recovery in us-west-2. They used the same CIDR. Transit Gateway peering was off the table. They spent two weeks engineering around an entirely avoidable problem.
3. "We'll do IAM cleanup after launch" never happens.
The AdministratorAccess policy you gave a contractor in month one will still be there in month eighteen unless you build IAM reviews into your cadence from the start. Quarterly IAM Access Analyzer reviews are non-negotiable once you're past 10 IAM principals.
4. Security groups are not a substitute for network segmentation. Teams that skip subnet tiers rely entirely on security group rules to isolate their database tier. That works until someone misconfigures a rule or an engineer opens port 5432 "temporarily" and forgets. Put your data tier in subnets with no internet route. The security group is a second layer, not the first.
5. No tagging strategy means no cost visibility, which means no accountability. Inherited a single-account AWS environment where the monthly bill was $34K and nobody could tell which team or product was responsible for what. Implementing a tagging policy retroactively requires touching every resource. Do it before you deploy anything, enforce it with Config rules, and gate deployments on tag compliance from day one.
Final Thoughts
The failure mode I keep seeing is organizations that treat "setting up AWS" as a technical task when it's actually a governance task that happens to use technical tools. The technology part (launching EC2, configuring RDS, deploying Lambda), is the easy part. Anyone with an AWS certification and a few months of experience can do it. The hard part is establishing the ownership model, the identity architecture, the network topology, and the governance framework that lets a team move fast without creating irreversible technical debt.
The teams that get this right think of the pre-launch phase not as "setup" but as "foundation", and they treat it with the same rigor they'd apply to a load-bearing wall. The cost of getting the foundation wrong is never just the cost of fixing the foundation. It's the cost of everything built on top of it.
Getting the foundation right the first time is almost always cheaper than rebuilding it later.
Key Takeaways
- Cloud project failure is almost always a governance failure, not a technology failure. The EC2 instance choice doesn't matter if nobody owns the account structure or network design.
- A single AWS account is a liability at scale. Start with at minimum dev and production accounts. Add a security account as soon as you have centralized logging needs.
- IAM strategy must be designed before the first deployment, not after the first access-denied error. Use OIDC federation for CI/CD, IAM Identity Center for human access, and never issue long-lived access keys for automated pipelines.
- CIDR blocks cannot be changed after the fact. Overlapping VPC address spaces will block Transit Gateway peering and VPC peering. Design your IP address allocation across all current and future accounts before creating your first VPC.
- Security groups are a second layer of defense, not a first. Private subnets with no internet route for your data tier are not optional, they're the architectural decision that makes your security group rules a backup, not a single point of failure.
- Tagging is not cosmetic. Without a mandatory tagging strategy enforced from day one, cost attribution and compliance auditing become retroactive archaeology projects.
- "We'll clean it up later" is a project plan, not a strategy. In cloud infrastructure, later never comes. The governance decisions made in the first two weeks define what's possible, and what's not, for the next two years.
Get insights like this in your inbox
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.