From a407714c48c4fc0174158ceb112f988dcd5261c6 Mon Sep 17 00:00:00 2001 From: Mark Wallsgrove Date: Fri, 29 May 2020 16:50:15 +0100 Subject: [PATCH] do not create dns entry when not using cdn (#37) --- _route53.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_route53.tf b/_route53.tf index f9b103b..002023d 100644 --- a/_route53.tf +++ b/_route53.tf @@ -44,6 +44,8 @@ resource "aws_route53_record" "www" { } resource "aws_route53_record" "internal-dns" { + count = "${var.use_cloudfront != "false" ? 1 : 0}" + zone_id = "${data.aws_route53_zone.primary.zone_id}" name = "${var.internal-domain-name}" type = "A"