'Pass ELB requests to particular endpoint of ec2
Basically, there's an API running on port 7000 on ec2 instance with endpoint "/api/users/data".
So my url becomes: "http://ec2-public-ip-address:7000/api/users/data"
I configured Target group health-check to use above path with 7000 port and it returned my ec2 as healthy.
Now I want request coming from ELB to be forwarded to same path. Though in ELB logs I checked that port 7000 is being used, but path is still "ec2-private-ip-address:7000".
amazon-web-services">
amazon-web-servicesamazon-ec2">
amazon-ec2amazon-elastic-beanstalk">
amazon-elastic-beanstalkamazon-elb
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
