Hi i have an issue where i have a hub spoke architecture as follows:
The issue is i want to forward the traffic from the hub network load balancer to the internal application load balancer in the spoke so i can run fargate tasks in multiple availability zones.
is there a other way to solve this without a lambda function which forwards the traffic?
As you noticed, you can only target NLB to an ALB in the same VPC.
ALB doesn't have a static address, so you cannot target it directly by IP either.
You can do the following:
NLB has static IPs that don't change:
When you create an internal load balancer, you can optionally specify one private IP address per subnet. If you do not specify an IP address from the subnet, Elastic Load Balancing chooses one for you. These private IP addresses provide your load balancer with static IP addresses that will not change during the life of the load balancer. You can't change these private IP addresses after you create the load balancer.