Terraform module which creates a hosted zone in AWS Route 53, and NS records in another, preexisting route53 zone, used to to forward DNS requests for a given domain to the new hosted zone.
Uses two instances of the AWS Provider.
AWS providers named "root" and "child" must be passed explicitly to this module. Here is an example:
provider aws {}
provider aws {}
alias "dns-root"
access_key = "..."
secret_access_key = "..."
}
module "forward-zone" {
source = "github.com/heroku/terraform-route53-to-route53-forward"
forward_domain = "forward.me.mydomain.com"
root_domain = "mydomain.com"
providers {
aws.child = "aws"
aws.root = "aws.dns-root"
}
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
force_destroy | (Optional, Default:false) A boolean that indicates all domains should be deleted from the zone so it can be destroyed without error. | string | "false" |
no |
forward_domain | Domain to forward. Must be the fully qualified domain name. | string | n/a | yes |
root_domain | Domain containing the subdomain to forward. | string | n/a | yes |
tags | (Optional, Default: {}) A map of tags to be added to the zone created. | map | <map> |
no |
ttl | (Optional, Default:600) TTL for the NS records to be created. | string | "600" |
no |
Name | Description |
---|---|
name_servers | Nameservers for the new, child route53 zone |
zone_id | ID of the new, child route53 zone |