pluralith-cli icon indicating copy to clipboard operation
pluralith-cli copied to clipboard

some aws_ssm_parameter resources are not displayed

Open okazu-dm opened this issue 3 years ago • 3 comments

I use pluralith for visualizing my infrastructure but I found some of aws_ssm_parameter are not displayed. I checked aws_ssm_parameter which was not displayed and some values of them are ARN(Amazon Resource Name) . I want to know two points.

  • Is there any filters which hide parameters?
  • If there is filter, how can I disable that?

versions

  • UI 0.1.22
  • CLI 0.1.22
  • Graphing 0.4.6

okazu-dm avatar Dec 14 '22 05:12 okazu-dm

Hi @okazu-dm thanks a lot for reporting the issue!

I think I have an idea of what the issue could be. We do quite a bit of aggregation when generating the diagram to make it human-readable. The resource type aws_ssm_parameter is what we call an attachment, meaning it gets aggregated into a sort of parent resource, if possible. Now the dashboard currently has a way to view attachments, but the desktop app still lacks this feature.

We are working on a somewhat major restructuring of things right now, which should indirectly resolve this issue. However, you bring up a good point. It might be worth exploring the idea of letting people specify a list of resource types in the pluralith.yml config file to specifically NOT aggregate (sort of the opposite end of the coin to #92 ). What do you think of this? This would effectively enable you to disable the aggregation for specific resource types of your choosing.

DanThePutzer avatar Dec 14 '22 11:12 DanThePutzer

Thanks for checking this issue @DanThePutzer Does "aggregate" means like this situation? (this is my desktop app view) image

If this is what you mean, I think this aggregation is easy to see and good for me but some resource is missed(In my case, I have 12 aws_ssm_parameter definition but I can see only 5) Or if this resource missing is intended behavior, I think the idea configuring by pluralith.yml sounds good but I just need to show hidden 7 resource in this children view(I need this tree structure because this children view is very helpful).

okazu-dm avatar Dec 15 '22 03:12 okazu-dm

@okazu-dm I guess what you showed in your screenshot is also a form of aggregation haha

But we do another form of aggregation. If you open a run in the SaaS dashboard (the desktop app is deprecated now, so if you simply run pluralith plan it should take you there), and click on some of the resources that have some sort of relationship with aws_ssm_parameter it should open a resource detail view on the bottom half of the screen and aws_ssm_parameter resources should be in the "Attachments" column for one of those resources.

The current setup, however, is not ideal and it's bit of a mess finding those resources. We've recently started work on making diagrams more configurable through the pluralith.yml config file, as mentioned before. That should help with this issue in the near future.

DanThePutzer avatar Feb 07 '23 15:02 DanThePutzer