[GH-ISSUE #111] Target Group returned instead of load balancer #57

Closed
opened 2026-05-06 12:36:48 +02:00 by BreizhHardware · 1 comment

Originally created by @ludevrie on GitHub (Mar 13, 2024).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/111

This happens in an ECS Fargate setup with internal and external ALB load balancers.

In graphmaker handle_special_resources() crashes when looking for "aws_lb".
The reason is that in resource_handlers.aws_handle_lb() the variable in found_lbs (['aws_lb.elb']) contains the details of a target group instead of a load balancer.
This in turn causes helpers.check_variant(lb, tfdata["meta_data"][lb]) to fail, because the meta_data contains neither "application" nor "network" and False is returned (which causes the crash, because on the next line it is concatenated with a string (renamed_node = lb_type + "." + "elb")

Originally created by @ludevrie on GitHub (Mar 13, 2024). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/111 This happens in an ECS Fargate setup with internal and external ALB load balancers. In graphmaker handle_special_resources() crashes when looking for "aws_lb". The reason is that in resource_handlers.aws_handle_lb() the variable in found_lbs (['aws_lb.elb']) contains the details of a target group instead of a load balancer. This in turn causes helpers.check_variant(lb, tfdata["meta_data"][lb]) to fail, because the meta_data contains neither "application" nor "network" and False is returned (which causes the crash, because on the next line it is concatenated with a string (`renamed_node = lb_type + "." + "elb"`)
Author
Owner

@patrickchugh commented on GitHub (Mar 22, 2026):

@ludevrie There have been many changes to the code since this issue was opened. Closing for now and please open a new issue if this still occurs.

<!-- gh-comment-id:4106313564 --> @patrickchugh commented on GitHub (Mar 22, 2026): @ludevrie There have been many changes to the code since this issue was opened. Closing for now and please open a new issue if this still occurs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/terravision#57
No description provided.