Search code examples
amazon-web-servicesamazon-elastic-beanstalkaws-application-load-balancer

Change Visibility of AWS Application Load Balancer to Internal Load Balancer


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)

Solution

  • 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.