I have created a Zone In AWS Route53 as following
resource "aws_route53_zone" "my-app" {
name = "${var.zone_name}"
}
data "aws_route53_zone" "selected" {
name = "appgggghello.com."
}
output "ns" {
value = "${data.aws_route53_zone.selected.name_servers}"
}
it will show out put as below
ns = [
ns-754.awsdns-350.net,
ns-555.awsdns-0553.org,
ns-555.awsdns-25552.co.uk,
ns-45569.awsdns-55555.com
]
Now i have question is how can i use this NS output as input in Cloudfalre like here
resource "cloudflare_record" "aws-ns-record" {
domain = "${var.domain}"
name = "appgggghello.com"
value = ["${data.aws_route53_zone.selected.name_servers}"]
type = "NS"
priority = 1
}
Within Route53 i can set NS using
records = ["${data.aws_route53_zone.selected.name_servers}"]
Please let me know how can i achieve this ?