This repository holds the source code for configuring DNS for domains managed by GSA TTS, including 18F and the Presidential Innovation Fellows. See also:
Assuming you're TTS staff, it's recommended that you make the change in a branch on this repository itself, rather than on a fork, because the credentials aren't shared with forks. (The main
branch is protected to limit write access only to certain staff, and to ensure history doesn't get overwritten, etc.) For major changes, it is recommended to keep the TTL value low just before and during the change period in order to make it easier to verify the changes went through as expected.
terraform/
already?
analytics.usa.gov
is a good example to copy from.aws_route53_zone
.aws_route53_record
s.It's worth noting that if you are pointing to a CloudFront distro, you should use Route 53's own alias
and not a CNAME record. In fact, CNAMEing a top-level domain (or the top level of a delegated subdomain) is not allowed in DNS. See the various examples in the repo, such as this one.
On merge, changes are deployed to an AWS account hosting the Route53 records automatically by a CircleCI job.
Please note: only production systems with an ATO that are categorized as Low impact should have their DNS configuration here.
We are moving from pages-redirects to fully configuring them in this repository. See the 18f_gov__join_18f_gov_redirect
example.
Leave the trailing slash off the destination domain.
If the redirecting domain is assigned to any CloudFront distribution in any AWS account, it will need to be unassociated before the module above can be successfully deployed.
We keep a Terraform file for every TTS domain, even if it's just a comment referencing DNS managed elsewhere.
This project is in the worldwide public domain. As stated in the license:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.