Skip to content

Commit 9f03e72

Browse files
committed
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.
1 parent 2a10702 commit 9f03e72

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

terraform/website/dns.tf

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,21 @@ resource "aws_route53_record" "mx_verification" {
77
records = ["10 ms21173179.msv1.invalid"]
88
}
99

10-
# domain verification with Microsoft
11-
resource "aws_route53_record" "txt_record_microsoft" {
10+
11+
resource "aws_route53_record" "txt_records_root" {
1212
zone_id = data.aws_route53_zone.main.zone_id
1313
name = var.domain
1414
type = "TXT"
1515
ttl = 3600
16-
records = ["MS=ms21173179"]
17-
}
1816

19-
# domain verification with GitHub
20-
resource "aws_route53_record" "txt_record_github" {
21-
zone_id = data.aws_route53_zone.main.zone_id
22-
name = "_gh-ColorCop-o.colorcop.net"
23-
type = "TXT"
24-
ttl = 3600
25-
records = ["938b88b3a4"]
17+
records = [
18+
# microsoft domain verification
19+
"MS=ms21173179",
20+
# github
21+
"938b88b3a4"
22+
]
2623
}
2724

28-
2925
# main A record alias to the Cloudfront hostname
3026
resource "aws_route53_record" "www_a" {
3127
zone_id = data.aws_route53_zone.main.zone_id

0 commit comments

Comments
 (0)