0

I created a classic loadbalancer on AWS with two EC2 instances running a simple flask application.

enter image description here

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:

enter image description here

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?

Nazar
  • 103
  • 5

1 Answers1

2

Security Group allowing all traffic from all sourcesCheck your ELB's security group that it's allowing 0.0.0.0/0 to access port 80.

You say 'set to default' but by default there are no inbound rules on a security group.

Jason Floyd
  • 1,792
  • 1
  • 13
  • 18