Terraform & IaC (50 Qs)•Part 4: Enterprise Cloud Infrastructure Architecture & SRE (35 - 50)
How do you manage DNS and Domain Automation with Terraform and AWS Route 53?
senior LevelCode ExampleFormsCI/CD & DevOpsSystem Design
In Simple Words: Automate Route 53 Hosted Zones, alias records pointing to ALBs, and ACM Certificate validation records:
hcl
resource "aws_route53_record" "api" {
zone_id = aws_route53_zone.primary.zone_id
name = "api.example.com"
type = "A"
alias {
name = aws_lb.main.dns_name
zone_id = aws_lb.main.zone_id
evaluate_target_health = true
}
}