Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP
Setup custom apex domain for your GitHub pages with Terraform
HCL
Branch: master
Failed to load latest commit information.
.gitignore Initial commit
LICENSE Add LICENSE
README.md Update README.md
dnsimple.tf Replace domain to variable
provider.tf Initial commit
variables.tf Initial commit

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
Something went wrong with that request. Please try again.