This repository contains configuration for our website domains. Using git allows us to enable self-serve changes, enforce peer-review, and store a history of our setup.
It uses Terraform with an unofficial GoDaddy provider. On each commit to master, GitHub Actions will apply the Terraform plan to update GoDaddy.
Open up main.tf, click the pencil icon, and make your changes to the configuration.
You'll probably just need to swap out the text values, or copy a record block and tweak it slightly. Please leave an informative comment so we know what the record is for in future!
- Generate a GoDaddy API key from https://developer.godaddy.com/keys
- Install Terraform
- Clone this repository
- Run
terraform init
- Run
terraform plan
For code editing, VS Code with the Terraform extension is recommended.
Because of n3integration/terraform-provider-godaddy#39, the plans are fairly useless for seeing what's changed. As such, we don't bother keeping track of the state as it does more harm than good in terms of understanding the diff.