mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #111] Target Group returned instead of load balancer #57
Labels
No labels
bug
enhancement
enhancement
good first issue
good first issue
good first issue
pipeline
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/terravision#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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")@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.