cycloidio / inframap

Read your tfstate or HCL to generate a graph specific for each provider, showing only the resources that are most important/relevant.
MIT License
1.68k stars 95 forks source link

Better support for "foreach" using sets or lists #224

Open Kolky opened 1 year ago

Kolky commented 1 year ago

When using "foreach" in your terraform a lot of nodes end up missing in the generated graph. I adapted the state.go generator to detect instances of resources either by their index or by their name (if using maps/sets). I post fix the name of a resource with ! and then either the index or name of the resource.

This PR also includes additional azure nodes, because it mostly contained network related things and is missing some common other nodes.

Example: dwh-insights-azurefunctions test terraform