Bringing in tmeper records to track

This commit is contained in:
shockrah 2023-10-05 23:08:27 -07:00
parent da379f20cb
commit b6aebf06b1

29
infra/dns/temper-tv.tf Normal file
View File

@ -0,0 +1,29 @@
resource "aws_route53_zone" "temper-tv" {
name = "temper.tv"
comment = "Main zone for temper.tv"
}
# Main entry which points to Alpha LB
resource "aws_route53_record" "temper-tv" {
zone_id = aws_route53_zone.temper-tv.id
name = "temper.tv"
type = "A"
alias {
name = var.alpha.dns
zone_id = var.alpha.zone
evaluate_target_health = true
}
}
# For email later down the line
resource "aws_route53_record" "temper-tv-txt" {
zone_id = aws_route53_zone.temper-tv.id
name = "temper.tv"
type = "TXT"
ttl = 300
records = [
"v=spf1 include:_mailcust.gandi.net ?all"
]
}