Created
August 10, 2017 10:38
-
-
Save nicholasjackson/d4a83e9f2e2096cdf3f6a55062de4f45 to your computer and use it in GitHub Desktop.
Terraform snippet to change nameservers in AWS Route53 domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_route53_zone" "selected" { | |
name = "demo.gs." | |
private_zone = false | |
} | |
resource "aws_route53_record" "ns" { | |
zone_id = "${data.aws_route53_zone.selected.zone_id}" | |
name = "${data.aws_route53_zone.selected.name}" | |
type = "NS" | |
ttl = "300" | |
records = ["10.0.0.1"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment