Interpret the symptom
AWS’s load-balancer troubleshooting reference lists status-specific causes. A 502 is not always an out-of-memory error, and a 503 is not always a DNS problem.
Scoped checks you can run
/health. The AWS command requires your authorized account and an observed target-group ARN. Review output privately. Never use curl -k as a fix for certificate errors or open a database/security group to the internet to diagnose HTTP.