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")
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"
)