Provides a Route53 Delegation Set resource.
resource "aws_route53_delegation_set" "main" {
reference_name = "DynDNS"
}
resource "aws_route53_zone" "primary" {
name = "hashicorp.com"
delegation_set_id = aws_route53_delegation_set.main.id
}
resource "aws_route53_zone" "secondary" {
name = "terraform.io"
delegation_set_id = aws_route53_delegation_set.main.id
}
This resource supports the following arguments:
reference_name
- (Optional) This is a reference name used in Caller Reference
(helpful for identifying single delegation set amongst others)This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name (ARN) of the Delegation Set.id
- The delegation set IDname_servers
- A list of authoritative name servers for the hosted zone
(effectively a list of NS records).In Terraform v1.5.0 and later, use an import
block to import Route53 Delegation Sets using the delegation set id
. For example:
import {
to = aws_route53_delegation_set.set1
id = "N1PA6795SAMPLE"
}
Using terraform import
, import Route53 Delegation Sets using the delegation set id
. For example:
% terraform import aws_route53_delegation_set.set1 N1PA6795SAMPLE