SHARE
TWEET

Untitled

a guest Jun 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top