Saving VPS Costs with Bash and Cloudflare Workers
Dec 14, 2023
What is a VPS? Well, it expands to Virtual Private Server1, which is often a virtual machine sold as a service by an Internet hosting service. In our case, it is a tiny Linux box running a WireGuard2 VPN (Virtual Private Network) service, set up in minutes with Algo3. How did you do it? Before we get into the how, let’s start with the why :) Running virtual machines in the cloud incur costs, also, some of these are running inside datacenters not powered by 100% renewable energy.…
Terraforming Cloudflare DNS Records
Oct 19, 2023
The background Terraform is an infrastructure-as-code (IaC) software tool by HashiCorp, which had a recent license change1. Cloudflare is a company providing multiple network-and-security related services. We had multiple records configured on Cloudflare DNS for a domain that we’ve set up partially2. The said records were configred via the Cloudflare dashboard. Adhering to IaC practices, we wanted to begin managing these records with Terraform. However, it can only manage configuration it created or was explicitly told about after the fact, the reason for this limitation being that Terraform expects to be authoritative for the resources it manages.…