temper-tv/infra/dns.tf
shockrah 71cf655767 Creating DNS entries for temper.tv
New ACM certs are still required for the LB to handle requests here properly
2023-10-01 03:11:45 -07:00

29 lines
592 B
HCL

resource "aws_route53_zone" "main" {
name = "temper.tv"
comment = "Main zone for temper.tv"
}
# Points to the Alpha LB in Project Athens
resource "aws_route53_record" "main" {
zone_id = aws_route53_zone.main.id
name = "temper.tv"
type = "A"
alias {
name = data.aws_lb.alpha.dns_name
zone_id = data.aws_lb.alpha.zone_id
evaluate_target_health = true
}
}
resource "aws_route53_record" "txt" {
zone_id = aws_route53_zone.main.id
name = "temper.tv"
type = "TXT"
ttl = 300
records = [
"v=spf1 include:_mailcust.gandi.net ?all"
]
}