Skip to content

Commit

Permalink
Fix root dns (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored Jul 5, 2018
1 parent 793150a commit ee38a40
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/root-dns/parent-audit-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "audit_name_servers" {
}

resource "aws_route53_record" "audit_dns_zone_ns" {
count = "${signum(length(var.audit_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "audit"
type = "NS"
Expand Down
1 change: 1 addition & 0 deletions aws/root-dns/parent-dev-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "dev_name_servers" {
}

resource "aws_route53_record" "dev_dns_zone_ns" {
count = "${signum(length(var.dev_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "dev"
type = "NS"
Expand Down
1 change: 1 addition & 0 deletions aws/root-dns/parent-local-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "local_name_servers" {
}

resource "aws_route53_record" "local_dns_zone_ns" {
count = "${signum(length(var.local_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "local"
type = "NS"
Expand Down
1 change: 1 addition & 0 deletions aws/root-dns/parent-prod-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "prod_name_servers" {
}

resource "aws_route53_record" "prod_dns_zone_ns" {
count = "${signum(length(var.prod_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "prod"
type = "NS"
Expand Down
1 change: 1 addition & 0 deletions aws/root-dns/parent-staging-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "staging_name_servers" {
}

resource "aws_route53_record" "staging_dns_zone_ns" {
count = "${signum(length(var.staging_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "staging"
type = "NS"
Expand Down
1 change: 1 addition & 0 deletions aws/root-dns/parent-testing-ns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ variable "testing_name_servers" {
}

resource "aws_route53_record" "testing_dns_zone_ns" {
count = "${signum(length(var.testing_name_servers))}"
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
name = "testing"
type = "NS"
Expand Down

0 comments on commit ee38a40

Please sign in to comment.