Skip to content

Commit

Permalink
Updated the fix for syntax error on if condition statement in main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
varungur committed Apr 9, 2020
1 parent 6852d37 commit 4cd5a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upi/metal/main.tf
Expand Up @@ -185,7 +185,7 @@ resource "aws_route53_record" "ctrlp_int" {
}

resource "aws_route53_record" "apps_noworker" {
count = var.worker_count != 0 ? 0 : 1
count = "${var.worker_count == 0 ? 1 : 0}"

zone_id = "${data.aws_route53_zone.public.zone_id}"
type = "A"
Expand All @@ -196,7 +196,7 @@ resource "aws_route53_record" "apps_noworker" {
}

resource "aws_route53_record" "apps_worker" {
count = var.worker_count > 0 ? 1 : 0
count = "${var.worker_count > 0 ? 1 : 0}"

zone_id = "${data.aws_route53_zone.public.zone_id}"
type = "A"
Expand Down

0 comments on commit 4cd5a47

Please sign in to comment.