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"