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

Generate a terraform graph for the project, modules, and examples #5

Open
displague opened this issue Dec 21, 2022 · 2 comments
Open

Comments

@displague
Copy link
Member

One way we want to improve our Terraform modules is through the consistent use of visualizations.

Adding a diagram to modules with our template project, we can standardize that practice.

For example, with a GH Action (like the one we use to generate documentation), we could provide a generated visualization in a stand-alone commit and update this with each change.

Projects would be encouraged to put in manually created (or alternatively generated) diagrams because the generated graphs may be crude. The generated graph could remain a part of the project whether or not the project keeps it in the README.md.

https://skeltonthatcher.com/2017/10/05/auto-generated-infrastructure-graphs-terraform-plans/
This is old but seems like it is still accurate. It's worth seeing if terraform graph has more options for generating images directly since then.

It’s possible that some of our modules may not pass a terraform validate or be usable in terraform graph because we don’t include the provider block. In this case, the generating graph within examples/simple could be included in the root README.

@ocobles
Copy link
Contributor

ocobles commented Dec 21, 2022

Some alternative tools that may be worth checking out

https://github.com/cycloidio/inframap
https://github.com/im2nguyen/rover

@displague
Copy link
Member Author

displague commented Mar 23, 2023

Inframap issue for Equinix resource awareness: cycloidio/inframap#220

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