aws

Use Terraform to Set Up Github Pages With Route 53

1 minute read Published:

Terraform can quickly build the DNS records for your github pages site. It's declarative, and easy to keep up to date, and replicate.
This will result in a certificate error if you don't take further steps. It’s nice to be able to spin up everything you need for github pages all in one go. If you’re using amazon for AWS, here’s a basic terraform configuration that should do everything you want in terms of DNS. This assumes you want to point everything at the apex domain rather than the www. After doing this you’ll still need to specify the CNAME file on your target project, and set the name servers on the domain.