When a user types fintrack.qossim005.online in their browser, three things happen in order:
1. DNS Resolution (Route53) Route53 translates the domain name into the ELB's IP address. Think of it like a phonebook - you give it a name, it gives you an address.
2. TLS Termination (ACM + ELB) The browser connects to the ELB over HTTPS. The ELB uses the ACM certificate to decrypt the request. After decryption, the ELB forwards plain HTTP internally to NGINX. TLS never enters the cluster.
3. Traffic Routing (NGINX Ingress) NGINX receives the plain HTTP request and decides where to send it:
/api/ → backend pod (port 3001)/ → frontend pod (port 80)When you run terraform apply, the dns module created:
qossim005.online - AWS now manages your DNSfintrack.qossim005.onlinefintrack.qossim005.online points to your ELBYou don't run these manually - Terraform handles them.
Route53 gives you 4 nameservers. You tell Namecheap to use them - this hands DNS control from Namecheap to Route53 permanently.
After terraform apply, your nameservers appear in the output:
nameservers = [
"ns-1467.awsdns-55.org"
"ns-1694.awsdns-19.co.uk"
"ns-385.awsdns-48.com"
"ns-905.awsdns-49.net"
]