Search code examples
amazon-web-servicesaws-application-load-balanceraws-nlb

Add external NLB as target group of ALB


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


Solution

  • 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