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

Use more fitting names when displaying resources on graph #230

Closed kerak19 closed 1 month ago

kerak19 commented 1 month ago

When reading resources, try to find more contextual name instead of resource "address":

  1. Check if tags have name attribute
  2. Check if labels have name attribute
  3. Check if there's a name attribute
  4. Check if there's an id. If id is a path, like in Azure, use the last part only