3 ms·
I think it's comparable to using Terraform. If you're only setting up one server in some cloud, then probably it's easier to just set that up through the admin
by rgoulter 5y ago
I think it's comparable to using Terraform.
If you're only setting up one server in some cloud, then probably it's easier to just set that up through the admin dashboard compared to setting up Terraform. For such a limited usecase, the benefit of "infrastructure as code" is that at least what you've got is documented.
But with using Terraform, all sorts of use cases are then enabled beyond what you'd want to manage manually.
Using Nix instead of manually installing a bunch of stuff seems fine either way. But stuff like nix-shell paired with direnv seems pretty neat.
- bspammer 5y agoI actually really agree that Terraform is a good analogy - you're frontloading the effort in a way that hopefully will make things easier in the future. I use Terraform to manage my own personal AWS account. Recently I needed a Windows VM to run some random exe file. I could have created an EC2 instance adhoc through the web console but I did it through terraform instead. It probably took me about 30 minutes longer than it would have otherwise, but now I've got that terraform module ready to go if I ever need a windows instance again in the future. It's got a properly configured security group that only allows access from my VPN, and it outputs the IP and admin password automatically. I'll never have to solve that problem again (well, for a few years if we're being realistic).