From 133cabbe46143194397b7286783dee888882ae92 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 24 Mar 2023 15:45:30 -0400 Subject: [PATCH] fix --- host/entry.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/entry.tf b/host/entry.tf index 8fbc929..c1494c3 100644 --- a/host/entry.tf +++ b/host/entry.tf @@ -1,4 +1,5 @@ resource "aws_route53_record" "entry_ipv4" { + count = length(local.ipv4_hosts) > 0 ? 1 : 0 zone_id = data.aws_route53_zone.zone.zone_id name = var.name type = "A" @@ -7,6 +8,7 @@ resource "aws_route53_record" "entry_ipv4" { } resource "aws_route53_record" "entry_ipv6" { + count = length(local.ipv6_hosts) > 0 ? 1 : 0 zone_id = data.aws_route53_zone.zone.zone_id name = var.name type = "AAAA"