Skip to content

Instantly share code, notes, and snippets.

@nicholasjackson
Created August 10, 2017 10:38
Show Gist options
  • Save nicholasjackson/d4a83e9f2e2096cdf3f6a55062de4f45 to your computer and use it in GitHub Desktop.
Save nicholasjackson/d4a83e9f2e2096cdf3f6a55062de4f45 to your computer and use it in GitHub Desktop.
Terraform snippet to change nameservers in AWS Route53 domain
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