Skip to content
Setup custom apex domain for your GitHub pages with Terraform
HCL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
dnsimple.tf
provider.tf
variables.tf

README.md

This is collection of .tf files to setup custom apex domain for your GitHub pages. This does exactly same thing as the official documentation ("Tips for configuring an A record with your DNS provider") with Terraform, Atlas and DNSimple.

MIT License

Usage

It's better to use Atlas to store DNSimple API token and .tfstate on there. To use Atlas, you need to get API token and set it via env var.

$ export ATLAS_TOKEN=""

To Setup remote state storage on Atlas.

$ terraform remote config -backend-config "name=<username>/dns-gh-pages"

Upload terraform module to an Atlas server for remote infra management. Only first time, you will be asked DNSimple API token, email and domain name to register.

$ terraform push -name "<uername>/dns-gh-pages"

Confirm

Check DNS is correctly configure or not.

$ dig example.com +nostats +nocomments +nocmd
You can’t perform that action at this time.