News for hackers. Stuff that matters.
Re:Ask HN: Successful one-person online businesses? by anyfactor on Wednesday March 29, 2023 @12:06AM (#35352358)
That is really awesome.

> nuke the VM once a year and re-provision otherwise you have to maintain the OS, do cleanup etc

That is really interesting. What are you using to re-setup your entire infrastructure after purging a VM? How do you manage the down time between one vm purge to setting up the next one.

I would love to know, going beyond the VPS what is your total infrastructure + maintenance cost.

Re:Ask HN: Successful one-person online businesses? by lightning19 on Wednesday March 29, 2023 @04:07AM (#35354058)
Thanks :)

I set things up again on the new VM manually. I have a runbook for it, usually takes me 30 mins or less.

To not have any downtime I keep the old VM up and attach a new public IP to the new VM. I then update the DNS records and after a while when the new IP is mapped to my domain I then stop the old VM.

Costs:

Managed Mongodb cluster: $9 but I share it between multiple side projects so let's say $3

API health checks - free! I use digital ocean and fresh ping

Service Desk - free! I use Jira

DNS: Usually $0.3

DB backups: within the free tier on both cloud providers. I have it set to only keep the last x backups so this should always be free

Cron job to run the backup: I have a serverless function for this, still within the free tier

SSL cert - free because I use let's encrypt

Docker image storage costs: <$1

Total ~$9.5

Re:Ask HN: Successful one-person online businesses? by anyfactor on Wednesday March 29, 2023 @05:26PM (#35363955)
Truly incredible. Thank you very much sharing.
Re:Ask HN: Successful one-person online businesses? by nerdyadventurer on Monday April 03, 2023 @08:43AM (#35422525)
Can you please say the services you use for DNS, Docker image storage?
Re:Ask HN: Successful one-person online businesses? by lightning19 on Thursday April 06, 2023 @03:41PM (#35473352)
DNS - I use GCP as the domain was purchased with domains.google because I get free email addresses which I can receive and reply to from my personal gmail (e.g. [email protected]). I'm not 100% sure if this setup will work with another DNS provider.

Docker Image - Since I'm running this most of the operation on AWS I use ECR