3

I currently have multiple instances of the same web application running on different instances by different vendors (AWS, Digital Ocean, Vultr). Each application instance run on their own port numbers.

I wish to configure AWS Applilcation/Network Load Balancer such that it will forward the requests to these endpoints:

Client -- HTTP Request --> Domain Name --> AWS Load Balancing Endpoint (IP Address?) --> Load Balancer rules --> Instances on AWS / Digital Ocean / Vultr.

Is there a way to do the above?

3

AWS Application Load Balancer’s Target Group can have either EC2 instance or IP address targets. In your case you need to use the IP address targets.

Here are the instructions: Application Load Balancing to IP Address

Hope that helps :)

  • "Minor" detail: you also need VPNs for this to work. "Application Load Balancers can now route traffic directly to IP addresses. These addresses can be in the same VPC as the ALB, a peer VPC in the same region, on an EC2 instance connected to a VPC by way of ClassicLink, or on on-premises resources at the other end of a VPN connection or AWS Direct Connect connection." ALBs can't route to arbitrary destinations on the Internet. – Michael - sqlbot Dec 18 '18 at 14:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.