Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. resource "aws_route53_zone" "my-app" {
  2. name = "${var.zone_name}"
  3.  
  4. }
  5. data "aws_route53_zone" "selected" {
  6. name = "appgggghello.com."
  7. }
  8.  
  9. output "ns" {
  10. value = "${data.aws_route53_zone.selected.name_servers}"
  11. }
  12.  
  13. ns = [
  14. ns-754.awsdns-350.net,
  15. ns-555.awsdns-0553.org,
  16. ns-555.awsdns-25552.co.uk,
  17. ns-45569.awsdns-55555.com
  18. ]
  19.  
  20. resource "cloudflare_record" "aws-ns-record" {
  21. domain = "${var.domain}"
  22. name = "appgggghello.com"
  23. value = ["${data.aws_route53_zone.selected.name_servers}"]
  24. type = "NS"
  25. priority = 1
  26. }
  27.  
  28. records = ["${data.aws_route53_zone.selected.name_servers}"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement