Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to see only the connected component of a given resource? #61

Open
adaszko opened this issue Nov 9, 2023 · 5 comments
Open

Ability to see only the connected component of a given resource? #61

adaszko opened this issue Nov 9, 2023 · 5 comments

Comments

@adaszko
Copy link

adaszko commented Nov 9, 2023

Hi and thanks for a great tool!

It's great for understanding existing Terraform code. I'm aware of the -exclude option but it doesn't quite cut it. What would be great to have is an option to specify a resource name, and based on that, the tool would filter out everything else that doesn't either depend on it or is depended on the given resource thereby presenting just a "slice" of the graph. This is to aid working with big graphs, especially that it doesn't seem to be possible to CTRL-F on the generated .html file (I guess that's due to how Cytoscape.js works).

This would require implementing some simple graph traversals but would reduce the graph to "just the interesting parts" when debugging some Terraform issue.

Curious to hear your thoughts

@dant2021
Copy link

dant2021 commented Apr 8, 2024

Hey!
We made an alternative: https://github.com/inkdrop-org/inkdrop-visualizer

@adaszko adaszko changed the title Ability to see only a connected component of a given resource? Ability to see only the connected component of a given resource? Apr 8, 2024
@adaszko
Copy link
Author

adaszko commented Apr 8, 2024

Hey! We made an alternative: https://github.com/inkdrop-org/inkdrop-visualizer

Thanks! I don't see any way to filter based on dependencies in the demo though?

@dant2021
Copy link

dant2021 commented Apr 8, 2024

When you click on a resource, it highlights the dependencies:
image
Works as well when you have a cross module dependency.

I'd be happy to talk more about what you need if this does not do what you want.
https://calendly.com/antoine-inkdrop/25-min

@adaszko
Copy link
Author

adaszko commented Apr 11, 2024

I missed that, thanks!

@dant2021
Copy link

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants