diff --git a/common/zone_forward.tf b/common/zone_forward.tf index faa0bb2..ca404d8 100644 --- a/common/zone_forward.tf +++ b/common/zone_forward.tf @@ -1,7 +1,7 @@ # if the zone grab fails here, it either doesn't exist or it is not associated with this VPC # if zone_id passed, do not try to use the zone data "aws_route53_zone" "zone" { - count = var.zone_id != null ? 1 : 0 + count = var.zone_id == null ? 1 : 0 name = local.zone private_zone = local.private_zone }