Skip to content

Creates zones and NS records to forward from a parent zone to the new child, in Route 53.

Notifications You must be signed in to change notification settings

heroku/terraform-route53-to-route53-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Route53 to Route53 NS forwarding terraform module

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.

Usage

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"
  }
}

Inputs

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

Outputs

Name Description
name_servers Nameservers for the new, child route53 zone
zone_id ID of the new, child route53 zone

About

Creates zones and NS records to forward from a parent zone to the new child, in Route 53.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages