This example shows how you can use the VPC Lattice module to configure DNS resolution (creation of Alias records) when creation VPC Lattice services with custom domain names. This example creates the following:
- Two Amazon Route 53 private hosted zones, and one VPC (needed for the configuration of the hosted zone as private).
- Eight VPC Lattice services with basic configuration (without listeners or targets).
- When configured, the custom domain name provided in each service's definition will create an Alias record either in the global Private Hosted Zone (defined in
var.dns_configuration.private_hosted_zone_id
) or in the specific PHZ (defined in the attributeprivate_hosted_zone_id
under the service's configuration invar.services
).