Skip to content

jfharden/terraform-aws-route53-zone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-route53-zone

Create a route53 hosted zone, either public or private, and optionally create delegated subdomains

Requirements

Name Version
terraform >= 0.12
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Inputs

Name Description Type Default Required
create_acm_cert If set to true an ACM SSL certificate will be generated for the apex domain and wildcard under it bool true no
delegated_sub_domains List of objects with subdomain and name_server keys. e.g. [{ subdomain = 'dev', name_servers=['8.8.8.8', '8.8.4.4'] }] NOTE: Order is crucial, changing the order (including removing elements) will cause recreation list(object({ subdomain = string, name_servers = list(string) })) [] no
environment Deployment environment (e.g. prod, test, dev) string n/a yes
tags Additional tags to add to all taggable resources created map {} no
ttl TTL to apply to delegated subdomain NS records number 300 no
vpc_name Name tag on the vpc in which the private hosted zone will be created. If left null public zone will be created string null no
zone_name Route 53 zone name string n/a yes

Outputs

Name Description
acm_certificate_arn ARN of the created wildcard and apex ACM SSL certificate, or null if not created
acm_certificate_validation_certificate_arn ARN of the created wildcard and apex ACM SSL certificate as an output from the aws_acm_certificate_validation resource.
name_servers List of name servers for the hosted zone
route53_cert_validation_fqdn FQDN of the route53 ACM certificate validation record
zone_id Route 53 hosted zone id

About

Create a route53 zone with optionally delegated subdomains

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages