I had created an Application Load Balancer and it was set as public. I have bifurcated certain things and want to convert it to an internal load balancer so that it is exposed only to the VPC resources. But when I change the visibility option from 'public' to 'internal', I get this error -
Updating Load Balancer listener named:
arn:aws:elasticloadbalancing:ap-south-1:xxxxxxxxx:listener/app/awseb-AWSEB-xxxxxxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxxx failed Reason:
The following target groups cannot be associated with more than one load balancer:
arn:aws:elasticloadbalancing:ap-south-1:xxxxxxxxxxxxxx:targetgroup/awseb-AWSEB-xxxxxxxxxxxxxx/xxxxxxxxxxxxxx
(Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: TargetGroupAssociationLimit)
An internal load balancer routes requests to targets using private IP addresses. For IP address type, choose IPv4 or Dualstack. Use IPv4 if your clients use IPv4 addresses to communicate with the load balancer. Choose Dualstack if your clients use both IPv4 and IPv6 addresses to communicate with the load balancer.
Therefore, internet-facing load balancers can route requests from clients over the internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes.
To access an internal load balancer in VPC A from VPC B: Establish connectivity between VPC A and VPC B using VPC peering. Establish the necessary routes, security group rules, and network access control list (ACL) rules to allow traffic between the VPCs.
When you create an internal load balancer, a virtual network is configured as the network for the load balancer. A private IP address in the virtual network is configured as the frontend for the load balancer. The frontend IP address can be Static or Dynamic.
I had this problem recently. To fix it, I had to disable to rule listener. Afterward, I was able to set it from public to internal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With