2
0 Comments

The four most common AWS mistakes

In the last few months Igor from Digger has helped dozens of founders with free AWS office hours.

He's seen a lot of patterns and shared with me the most common mistakes he's seen founders make with AWS.

1) Using root accounts instead of sub-accounts

Igor has seen many first-time founders use root-credentials way too liberally - don’t do this.

As AWS put it themselves:

“We strongly recommend that you do not use the root user for your everyday tasks, even the administrative ones. Instead, use your root user credentials only to create your IAM admin user. Then securely lock away the root user credentials and use them to perform only a few account and service management tasks. For everyday tasks, do not use your IAM admin user. Instead, use roles to delegate permissions.”

For more founder security fundamentals, check out

Don't use root accounts>

2) Infinite loops without scaling limitations

This Hacker News user’s company created a “several-hundred-thousand-dollar bill” this way.

Ensure you have scaling limitations on your auto-scaling groups.

And gosh, don’t call the same Lambda from inside itself! Even if the idea seems elegant and you think you’ve put all the necessary checks in place. This is not the place to flex your computer science mastery. Don’t build a cash-burning machine.

More information can be found here

3) Using containers & lambdas incorrectly

There are two ways to run your backend code - containers and lambdas, both have tradeoffs.

Containers on something like ECS enable your services to always be online, so you can achieve low latency. Automatically scaling in case of a load spike will be slower, and when there is no load you’ll still pay for idle compute. It’s ideal for consistent workloads like handling requests from your front-end but don’t use containers if you need to quickly scale up or want to hyper-optimise compute costs.

Lambdas are serverless - they scale up much faster and can go down to 0. so if there is no usage, you pay zero. Low latency is harder to achieve with lambdas though because of so-called “cold start” problem. don’t use lambdas for handling your application requests that require fast response - users don’t like when things are slow

Don't use root accounts>

4) Using Elastic Beanstalk

Igor does not have a good impression of Elastic Beanstalk

It promises simplicity but it has barely changed in the last 10 years and has many problems.

The AWS forums are filled with complaints about users facing constant restarts of their services and their services entering into deadlock states.


If you’re a first-time founder working with AWS, Digger has written a guide for you

posted to Icon for group Developers
Developers
on February 17, 2022
Trending on Indie Hackers
Why Indie Founders Fail: The Uncomfortable Truths Beyond "Build in Public" User Avatar 139 comments Your AI Product Is Not A Real Business User Avatar 87 comments The Clarity Trap: Why “Pretty” Pages Kill Profits (And What To Do Instead) User Avatar 34 comments I built an enterprise AI chatbot platform solo — 6 microservices, 7 channels, and Claude Code as my co-developer User Avatar 29 comments Stop Building Features: Why 80% of Your Roadmap is a Waste of Time User Avatar 27 comments I got let go, spent 18 months building a productivity app, and now I'm taking it to Kickstarter User Avatar 18 comments