Skip to content

Commit ee38a40

Browse files
authored
Fix root dns (#22)
1 parent 793150a commit ee38a40

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

aws/root-dns/parent-audit-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "audit_name_servers" {
33
}
44

55
resource "aws_route53_record" "audit_dns_zone_ns" {
6+
count = "${signum(length(var.audit_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "audit"
89
type = "NS"

aws/root-dns/parent-dev-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "dev_name_servers" {
33
}
44

55
resource "aws_route53_record" "dev_dns_zone_ns" {
6+
count = "${signum(length(var.dev_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "dev"
89
type = "NS"

aws/root-dns/parent-local-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "local_name_servers" {
33
}
44

55
resource "aws_route53_record" "local_dns_zone_ns" {
6+
count = "${signum(length(var.local_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "local"
89
type = "NS"

aws/root-dns/parent-prod-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "prod_name_servers" {
33
}
44

55
resource "aws_route53_record" "prod_dns_zone_ns" {
6+
count = "${signum(length(var.prod_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "prod"
89
type = "NS"

aws/root-dns/parent-staging-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "staging_name_servers" {
33
}
44

55
resource "aws_route53_record" "staging_dns_zone_ns" {
6+
count = "${signum(length(var.staging_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "staging"
89
type = "NS"

aws/root-dns/parent-testing-ns.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ variable "testing_name_servers" {
33
}
44

55
resource "aws_route53_record" "testing_dns_zone_ns" {
6+
count = "${signum(length(var.testing_name_servers))}"
67
zone_id = "${aws_route53_zone.parent_dns_zone.zone_id}"
78
name = "testing"
89
type = "NS"

0 commit comments

Comments
 (0)