I am trying to create a record in my public hosted zone in Route 53 to point at my network load balancer. When I create record and go to access the domain I get a 502 Bad Gateway error. But when I try accessing the website using the DNS of the load balancer it loads with no issues.
Any idea why this is happening? My domain's name is make-life-eazy.com
The load balancer's DNS: makelifeeazy-nlb-16a22ca63629cdb5.elb.ap-southeast-2.amazonaws.com
Turns out I had to change the name servers in Route 53 to the new name servers of the new hosted zone of the account the domain was transferred to.