Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been completely perplexed by how I might repeatably and reliably setup a single DigitalOcean (or similar) server.

I can't just blow away the instance, make a new one with their API, and run a bash script to set it up because I need to persist some sqlite databases between deploys.

Nix looks promising, but also seems to be a lot to learn. I think I'd rather focus on my app than learn a whole new language and ecosystem and way of thinking about dependencies.

I don't think my needs are insane here, I'm surprised there seems to be no infrastructure as code project for tiny infrastructures.



I’m a huge K8s advocate but if all you’re looking for his a repeatable way to spin up DO droplets then use a user-data script.

User data is a bash script that can be automatically run when the machine first spins up.

You could pass that script via digital oceans cli or even a tool like terraform.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: