[GH-ISSUE #173] [FEATURE] Use module names in the labels #100

Closed
opened 2026-05-06 12:37:29 +02:00 by BreizhHardware · 3 comments

Originally created by @tamaraalarconmiller on GitHub (Mar 18, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/173

add a --use-module-names flag, so the innermost containing Terraform module name is used as the label instead of dropping it entirely. This is especially useful for projects that use standard module patterns where meaningful names live in the module name rather than the resource instance name.

Example: module.core-feature.module.image_compression_lambda.aws_lambda_function.this currently shows "Lambda Function", should show "Image Compression Lambda"

Originally created by @tamaraalarconmiller on GitHub (Mar 18, 2026). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/173 add a `--use-module-names` flag, so the innermost containing Terraform module name is used as the label instead of dropping it entirely. This is especially useful for projects that use standard module patterns where meaningful names live in the module name rather than the resource instance name. Example: `module.core-feature.module.image_compression_lambda.aws_lambda_function.this` currently shows "Lambda Function", should show "Image Compression Lambda"
Author
Owner

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

Good idea we should do this by default I think without any special flag

<!-- gh-comment-id:4088127007 --> @patrickchugh commented on GitHub (Mar 19, 2026): Good idea we should do this by default I think without any special flag
Author
Owner

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

can you try with v0.23 and let me know if it's better now? @tamaraalarconmiller

<!-- gh-comment-id:4106277729 --> @patrickchugh commented on GitHub (Mar 22, 2026): can you try with v0.23 and let me know if it's better now? @tamaraalarconmiller
Author
Owner

@tamaraalarconmiller commented on GitHub (Mar 24, 2026):

now it looks so much better. thank you!!

<!-- gh-comment-id:4118230770 --> @tamaraalarconmiller commented on GitHub (Mar 24, 2026): now it looks so much better. thank you!!
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#100
No description provided.