aws-tagger icon indicating copy to clipboard operation
aws-tagger copied to clipboard

32 character limitation for ELB names

Open Suresh-TechM opened this issue 7 years ago • 1 comments

Hi guys, thanks for the wonderful tool. I've came across an issue while trying to tag elb/alb. I'm getting error saying ELB names should be less than 32 characters. Maybe at the time of creating the script ELB were within 32 characters but since the the use of elbv2(alb/nlb) names are longer than 32 characters. It would be great if you can modify the script to support this. Thanks.

Suresh-TechM avatar Sep 25 '18 17:09 Suresh-TechM

Hi - I ran into this same problem. It is because there is no code to account for network loadbalancers.

Look at line 376 in 'tagger.py', if ':loadbalancer/app/' in resource_arn:

It then uses the elbv2 code, which uses the ARN to identify the load balancer. But network load balancers look like this: ':loadbalancer/net/'

This is passed to the name extraction routine, and it fails because the format of the ARN is different.

Please add this condition to the code. Thanks

skeller047 avatar Jan 15 '21 01:01 skeller047