Add external NLB as target group of ALB

111 views Asked by At

is it possible to add external facing NLB as target group of ALB? I am getting error

An error occurred (ValidationError) when calling the RegisterTargets operation: 
The IP address '54.xxx.xxx.xx' is not allowed,
as it must be an address from a VPC subnet, RFC1918, or RFC6598

while calling aws elbv2 register-targets API

3

There are 3 answers

0
Sameer Naik On BEST ANSWER

It is possible to add NLB IP addresses as target group of ALB as long as NLB is internal and both are in same VPC or their VPCs are peered

0
Mark B On

That's not possible. NLBs can target ALBs. ALBs cannot target NLBs.

0
Azaan Ahmad On

From your error I see uou are trying to add public ip as Target which not supported 100%.

You can only have rfc1918 range for this.