From 192d3fedbd0d143d289942d599cd49095162b692 Mon Sep 17 00:00:00 2001 From: Tim Myers Date: Tue, 21 Feb 2023 13:11:41 -0700 Subject: [PATCH] infra: dns fix (#40) --- terraform/route53.tf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/terraform/route53.tf b/terraform/route53.tf index 4e63f2d..b2d0fc9 100644 --- a/terraform/route53.tf +++ b/terraform/route53.tf @@ -12,11 +12,13 @@ resource "aws_route53_record" "runner_custom_domain_record" { allow_overwrite = true name = "din.dev" - records = [ - data.terraform_remote_state.dev.outputs.proxy_deployment_dns_target[0] - ] - ttl = 60 - type = "CNAME" + alias { + name = data.terraform_remote_state.dev.outputs.proxy_deployment_dns_target[0] + zone_id = "Z01915732ZBZKC8D32TPT" + evaluate_target_health = true + } + + type = "A" zone_id = module.route53_zone_din_dev[0].zone_id } resource "aws_route53_record" "runner_custom_domain_certificate_record" {