Resource: aws_route53_delegation_set

Provides a Route53 Delegation Set resource.

Example Usage

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
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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