I’m a solutions architect in the biotech industry, and I’m interested in building out some personal projects on the side basically just to upskill and maybe create some sort of blog posts to advertise my skills for future job opportunities. I’m not imagining anything I build (including the blog) will ever turn a profit for me, so any costs associated to these personal projects is basically an expense without an ROI.
Anyways, I’m still setting up my personal AWS account, and I’m realizing just how costly the base infrastructure is! What I think I need is a NAT Gateway for internet out and site-to-site VPN to access resources in my private subnets. But between a NAT Gateway at ~$30 a month and site-to-site VPN at ~$70, this is already close to $100 dollars in the red without even starting on use cases!
Actual use cases will likely involved ECS/EKS deployments of Airflow and DE-related tooling which I’ll tear down after building, so that might only end up being $15 total per project, but still scratching my head on how to actually get setup in a cost effective way!
Right now I’ve deployed a NAT instance to stand in for the NAT Gateway at only about $3 per month and I’m still looking into the best way to get VPN access to the private subnets cheaply, but I’m really curious what other people do for their personal AWS accounts? Do you just eat the cost? Do you do some sort of time or usage-based deployment to only have things run when needed?
Local development/other clouds isn’t an option because the goal here is to grow in AWS with future goals for Community Builders, presentations, etc. Just want to figure out how to do this without breaking the bank. Thanks!
If it is a personal project, consider an ec2 instance with a public IP. You wont need NAT and if you have other instances, just use this same ec2 as a nat gateway.
Use aws ssm to gain access to it or run your own ssh server on the instaance above or your own vpn server if truly needed.
We vend every employee an AWS sandbox account of their own + a vantags.sh custom cost/spending dashboard.
Our control tower account factory makes a dumb default VPC with multiple NAT gateways that push the cost of each sandbox account to a few hundred $dollars a month per account
So the first assignment we give people who ask for an AWS account is we tell them to learn how to delete the default VPC and related infra while also paying attention to the vantage cost/billing data.
End result is the first “assignment” is an AWS cost reduction exercise. Works well!
For your personal project I’d skip site to site VPN and just learn SSM including how to tunnel SSH and other ports over SSM. SSM is a great solution to keeping all your stuff in a private subnet while still needing access to it.
and site-to-site VPN to access resources in my private subnets.
If you’re talking about EC2 resources, skip the VPN. Use SSM Session Manager for connectivity instead. You can even tunnel SSH through Session Manager so transparently that it feels just like a VPN, but is actually more secure.
a NAT Gateway at ~$30
…
I’ve deployed a NAT instance to stand in for the NAT Gateway at only about $3 per month
If that instance isn’t fck-nat you may have more performance and cost savings you can squeeze out of it. But yes, absolutely avoid NAT Gateway for personal projects. Heck, I avoid it for most professional projects.
But do you actually need NAT? And if you need it, do you need it for anything more than downloading updates? If it’s just for updates, consider just Stopping the instance. Just spin it up when you’re updating systems.
Actual use cases will likely involved ECS/EKS deployments
I’m a huge AWS fan…but for personal projects, as I understand it other cloud vendors have free tier (or at least cheaper low tier) options for k8s, especially the control plane which for small personal projects is often the most expensive part of the cluster.
I know you’re focusing on AWS for learning reasons, but k8s is mostly k8s.
Local development/other clouds isn’t an option because the goal here is to grow in AWS with future goals for Community Builders, presentations, etc. Just want to figure out how to do this without breaking the bank. Thanks!
Are you sure local dev isn’t an option? Have you tried Localstack for example? If nothing else it might help you get your “AWS” development mostly worked out before need to deploy and pay for it actually in the cloud.
Personal blog could be done in Serverless 100%. Play your cards right you are looking at $0.50/mo route53, free lambda, <$0.01/mo API gateway, maybe a few cents in s3
for a low-traffic project you could save a lot by using lambda for compute. dynamodb is a cheap option for persistence if a document/nosql db works for you (again, assuming low volume), or if you prefer a relational database planetscale and supabase both have a generous free tier. ive had a positive experience building a lambda-based rest api with serverless framework (serverless.com), but ive also heard good things about sst (sst.dev)
As for projects, take a look at some event based architectures as they tend to scale to zero and use serverless services like S3, Lambda, Eventbridge and SNS. Low cost and potentially high real world benefit
It really relies on which way you want to go, but chances are something on https://workshops.aws/ will get you on the path you want to go.