In the documentation for aws_route53_record, the example used is:
resource "aws_route53_zone" "example" {
name = "test.example.com"
}
resource "aws_route53_record" "example" {
allow_overwrite = true
name = "test.example.com"
ttl = 30
type = "NS"
zone_id = "${aws_route53_zone.example.zone_id}"
records = [
"${aws_route53_zone.example.name_servers.0}",
"${aws_route53_zone.example.name_servers.1}",
"${aws_route53_zone.example.name_servers.2}",
"${aws_route53_zone.example.name_servers.3}",
]
}
I’m curious if and why there is a need to be so verbose as opposed to something like:
resource "aws_route53_record" "example" {
allow_overwrite = true
name = "test.example.com"
ttl = 30
type = "NS"
zone_id = aws_route53_zone.example.zone_id
records = aws_route53_zone.example.name_servers
}
TIA