inkdrop-org / inkdrop-visualizer

Visualizes your Terraform
https://inkdrop.ai/
Mozilla Public License 2.0
460 stars 21 forks source link

Bug: Modules not rendering if a count is used #53

Open masonbivens opened 4 months ago

masonbivens commented 4 months ago

It appears there is an issue with modules (and possibly other resources as well), not being recognized if a count conditional is used. I believe it may be related to the index not being parsed properly from the plan output.

The only difference between these two diagrams from a code perspective is commenting out count = var.enable_eks_cicd_workers ? 1 : 0 and the worker group is enabled in both scenarios.

Module With Count Usage

![eks-with-count](https://github.com/inkdrop-org/inkdrop-visualizer/assets/17583156/0a6321a6-6439-46db-beec-7927946baf5a)

Module Without Count Usage

![eks-without-count](https://github.com/inkdrop-org/inkdrop-visualizer/assets/17583156/bee0283f-1e38-46a5-a01e-a8ea4e20b4b8)