mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #190] Resolve 'Cannot resolve module.X' warnings in tfwrapper module interpolation #116
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#116
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 @bradms98 on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/190
Problem
When running terravision against
aws_prod_network, the parser emits ~18 warnings of the form:These occur when module-to-module references use expressions the static interpolation resolver in
modules/tfwrapper.pycan't evaluate (e.g.,module.transit_gateway,module.cloud_wan_core_network,module.transit_gateway_attachments.tomap,module.sdwan_vedge.flatten).Impact
Values get set to
UNKNOWN, which likely causes missing or incorrect edges between resources in the rendered diagram (e.g., TGW → VPC attachment → Cloud WAN chains).Sample warnings observed
module.cloud_wan_core_network(fromcloud_wan_connect_attachment)module.cloud_wan_vpc_attachment.for(HCLforexpression)module.transit_gateway_attachments.tomap(HCLtomapfunction)module.sdwan_vedge.flatten(HCLflattenfunction)module.ssm_iam_role.namemodule.networking_test_server_sgSuggested investigation
.for/.tomap/.flattenare function calls, not attributes — parser should skip not warn)module.transit_gateway), improve resolution inmodules/tfwrapper.pyReproduction
@bradms98 commented on GitHub (Apr 14, 2026):
Created in wrong repo, moving to fork