Recently I’ve started codifying my setup for my personal Webserver. I’ve been running this on an AWS EC2 instance for quite some time, making use (where possible) of the generous free tier that Amazon offer. Whilst my setup is fairly customised to my needs, at the same time, my needs are pretty generic; I run a couple of WordPress websites, and a couple of static (built with Hugo) sites as well.
This is a test, please don’t ignore! Or well, you can, but it’s only a quick one, all about how I’m trying to hack together some static-site publishing from my ipad.
You’re managing your cloud infrastructure using Terraform. You’ve got your first environment up and running and you’re already reaping the benefits of a codified infrastructure. Changes are easy. But, now you need to set up a second environment (staging, prod, whatever) and you’re finding that managing this is not straight forward. There’s a bunch of arguments to remember every time you switch between environments, and your switching a lot because you want to keep them in sync. Because this is hard you tend to use auto-complete, but then sometimes you forget to change something and accidentally apply prods config to staging. Well, as in many occasions, a Makefile can probably help you there.