From f55c84ba415d571b73b529cbcd7db24aab88514b Mon Sep 17 00:00:00 2001 From: j4y <36337+j4y@users.noreply.github.com> Date: Thu, 25 Dec 2025 10:36:16 -0500 Subject: [PATCH] refactor: merge root TXT records into single resource Consolidates Microsoft and GitHub TXT verification records into one aws_route53_record to comply with Route53's requirement of a single TXT record per name. Removes separate microsoft and github TXT resources. --- terraform/website/dns.tf | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/terraform/website/dns.tf b/terraform/website/dns.tf index 759eede..5fc1b99 100644 --- a/terraform/website/dns.tf +++ b/terraform/website/dns.tf @@ -7,25 +7,21 @@ resource "aws_route53_record" "mx_verification" { records = ["10 ms21173179.msv1.invalid"] } -# domain verification with Microsoft -resource "aws_route53_record" "txt_record_microsoft" { + +resource "aws_route53_record" "txt_records_root" { zone_id = data.aws_route53_zone.main.zone_id name = var.domain type = "TXT" ttl = 3600 - records = ["MS=ms21173179"] -} -# domain verification with GitHub -resource "aws_route53_record" "txt_record_github" { - zone_id = data.aws_route53_zone.main.zone_id - name = "_gh-ColorCop-o.colorcop.net" - type = "TXT" - ttl = 3600 - records = ["938b88b3a4"] + records = [ + # microsoft domain verification + "MS=ms21173179", + # github + "938b88b3a4" + ] } - # main A record alias to the Cloudfront hostname resource "aws_route53_record" "www_a" { zone_id = data.aws_route53_zone.main.zone_id