Point-out Docs

Each environment account has one Route 53 hosted zone for its root domain: staging2.point-out.net for staging and point-out.net for production. Other components add their records to it.

Architecture

dns.tf creates the zone from the root_domain variable and exports its name servers as the name_servers output. The parent zone is not managed by this stack.

RecordTypeCreated byPoints to
docs.<root_domain>A aliasdocs-site/dns.tfthe docs distribution
_<token>.docs.<root_domain>CNAME, TTL 300docs-site/certificate.tfACM's DNS validation target
ingest.<root_domain>A, AAAA aliaslambda-ts/dns.tfthe lambda-ts API distribution
_<token>.ingest.<root_domain>CNAME, TTL 300lambda-ts/certificate.tfACM's DNS validation target

Deployment

The zone and its records are applied by the OpenTofu pipeline like the rest of the stack.

The zone only answers queries once its parent delegates to it, and that step is manual. After the first apply of an environment, copy the name_servers output from the apply's log and add them as an NS record for the zone's name in the parent zone.

For production the zone is point-out.net itself, so its name servers are set at the registrar, and changing them moves the whole domain to the new zone. The new zone only holds the docs records: copy every record the domain still needs into it before changing the name servers.

On this page