Skip to content

Commit

Permalink
make number from bools
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcube committed Jun 23, 2022
1 parent 8196acc commit 0e4597d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {
data "aws_region" "default" {}

data "aws_route53_zone" "parent_zone" {
count = local.parent_zone_record_enabled
count = local.parent_zone_record_enabled ? 1 : 0
zone_id = var.parent_zone_id
name = var.parent_zone_name
}
Expand All @@ -31,7 +31,7 @@ resource "aws_route53_zone" "default" {
}

resource "aws_route53_record" "ns" {
count = local.parent_zone_record_enabled
count = local.parent_zone_record_enabled ? 1 : 0
zone_id = join("", data.aws_route53_zone.parent_zone.*.zone_id)
name = join("", aws_route53_zone.default.*.name)
type = "NS"
Expand Down

0 comments on commit 0e4597d

Please sign in to comment.