Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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}"
- }
- ns = [
- ns-754.awsdns-350.net,
- ns-555.awsdns-0553.org,
- ns-555.awsdns-25552.co.uk,
- ns-45569.awsdns-55555.com
- ]
- resource "cloudflare_record" "aws-ns-record" {
- domain = "${var.domain}"
- name = "appgggghello.com"
- value = ["${data.aws_route53_zone.selected.name_servers}"]
- type = "NS"
- priority = 1
- }
- records = ["${data.aws_route53_zone.selected.name_servers}"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement