【发布时间】:2021-12-05 14:54:40
【问题描述】:
aws_route53_zone 资源状态的docs:
公共子域区域
要在子域中使用,请注意您需要创建一个 NS 类型的 aws_route53_record 以及子域区域。
resource "aws_route53_zone" "main" {
name = "example.com"
}
resource "aws_route53_zone" "dev" {
name = "dev.example.com"
tags = {
Environment = "dev"
}
}
resource "aws_route53_record" "dev-ns" {
zone_id = aws_route53_zone.main.zone_id
name = "dev.example.com"
type = "NS"
ttl = "30"
records = aws_route53_zone.dev.name_servers
}
但是,当我创建一个公共子域时,它已经包含一条 ns 记录 - 文档是否已过时或者我需要执行其他步骤,例如删除 ns 记录?
【问题讨论】: