Skip to content

subdomain/gcp/cloud-dns

domain - connection

Connection Type: domain/gcp/cloud-dns

name - string

The domain name of the DNS zone.

This is the dns_name specified by the user in the subdomain registration.

fqdn - string

The FQDN (fully-qualified domain name) of the DNS zone.

Format

The official Nullstone modules provide automatic subdomain generation. These modules create a unique DNS zone based on:

  • domain name
  • dns_name specified by the user
  • the current environment
  • var.create_vanity

Examples for domain acme.io:

dns_nameenvvar.create_vanityfqdn
apidevfalseapi.dev.acme.io
apistagingfalseapi.staging.acme.io
apiprodtrueapi.acme.io

zone_id - string

The ID of the Google Cloud DNS Managed Zone ID.

nameservers - list(string)

A list of authoritative nameservers for the created domain.

By setting the nameservers in the domain registrar to these records, this domain will have the source of truth for DNS records.

certificate_map_name - string

The name of a Certificate Map in GCP Certificate Manager. This certificate map should contain a certificate that has a hostname that matches the fqdn output from this module.

The certificate map is used to configure TLS on Cloud CDN and Load Balancers.

This is an empty string if a certificate and certificate map were not created.