What to Consider When Setting Up AWS Infrastructure for a Startup?
Asked by
bicycle_chain_oil
I'm building the infrastructure for my startup using AWS, and as a solo developer, I'm relying on services like Lambdas, API Gateway, and DynamoDB for an event-driven architecture. I'm aiming to minimize operational overhead so I can focus on the business side of things. I have some previous AWS experience, including an internship there, but this is my first go at setting up a comprehensive architecture from scratch without any supervision. I'm looking for insights on a few specific areas:
* What hidden costs or unexpected issues should I be aware of with services like Lambda?
* What best practices would you recommend for building a serverless or event-driven architecture?
* Are there any tools or methods that have helped you effectively track or manage costs while maintaining speed?
I'm also open to any general advice, particularly things you learned the hard way.
Answers
Setting up a multi-account AWS Organization with a Landing Zone and SSO federation to your identity provider is key. After that, work on things like creating accounts for your workloads within the Org, set up SCP guardrails, and establish billing alerts. Getting these foundational elements right at the start can save you a lot of headaches later onโretrofits can be a hassle!
Reply to this answer
I suggest starting out with a solid landing zone even before deploying any resources. It sets a good foundation for everything that follows.
Reply to this answer
First off, definitely set up billing alerts. You donโt want to be caught off guard with unexpected charges. Do that before you start using services like DynamoDB or Lambda.
Reply to this answer
After getting your landing zones and billing alerts in place, consider using CDK (Cloud Development Kit) for your infrastructure setup. If you're looking to deploy from CI/CD, checking out OIDC short-lived credentials instead of hardcoded keys is a smart move. Plus, avoid nested stacks; save names and ARNs as string parameters to share across stacks, it's cleaner!
Reply to this answer
Just a heads upโLambda can be tricky for user-facing APIs. You might want to consider that if your app relies heavily on it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
SPOOL HOLDER: Absolutely! And donโt forget to enable multi-factor authentication on everything. It's a must.