with this flow:
external world --> AWS API Gateway ---> VPC Link ---> Network Load Balancer ---> my single EC2 instance
How can I configure AWS Netword Load Balancer such that:
Requests to
https://myapp.com
is routed into port80
of my EC2 instance.Requests to
https://myapp.com/api/*
is routed into port3000
of my EC2 instance.
?
Currently I have only configured one Listener on the NLB that listens on port 80
and all traffics from the API Gateway are routed to port 80
of my EC2 instance.
I have found that in Application Load Balancer, you can configure "Rules" that map path to different ports: Path based routing in AWS ALB to single host with multiple ports
Is this available with NLB?