Files
git/terraform/routing.tf
2025-02-07 16:47:38 -05:00

13 lines
355 B
HCL

# The Route53 DNS zone.
data "aws_route53_zone" "main" {
name = local.domain_name
}
# Push all domain traffic through the reverse proxy.
resource "aws_route53_record" "domain" {
zone_id = data.aws_route53_zone.main.zone_id
name = "code.${data.aws_route53_zone.main.name}"
type = "A"
ttl = "60"
records = [aws_eip.public.public_ip]
}