I created a classic loadbalancer on AWS with two EC2 instances running a simple flask application.
The security group on the ELB is set to allow all inbound/outbound. The security groups for the EC2 instances are set to HTTP 0.0.0.0/0 port 5000. The health of instances is good - I can see that in the ELB dashboard and also can see the 200 ping responses from my applications in debug. I can access the webapplications directly when using the EC2's ip addresses with no problem. However, when using ELB's public DSN, the request times out:
This timeout occurs even if the applications are not running. So I assume that the problem is at the front end (with ELB). I have gone through tons of aws troubleshoot suggestions (which are not very straightforward for me as a starter) but did not manage to get it working. Any ideas?