Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Amazon VPC Lattice - Example: DNS configuration

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 attribute private_hosted_zone_id under the service's configuration in var.services).

Requirements

Name Version
terraform >= 1.3.0
aws >= 4.66.0

Providers

Name Version
aws >= 4.66.0

Modules

Name Source Version
dns_resolution_example1 ../.. n/a
dns_resolution_example3 ../.. n/a

Resources

Name Type
aws_route53_zone.global_private_hosted_zone resource
aws_route53_zone.specific_private_hosted_zone resource
aws_vpc.vpc resource
aws_vpclattice_service.service2 resource
aws_vpclattice_service.service4 resource
aws_vpclattice_service.service6 resource

Inputs

Name Description Type Default Required
aws_region AWS Region to use. string "eu-west-1" no

Outputs

No outputs.