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.…