structurizr / dsl

Structurizr DSL
https://docs.structurizr.com/dsl
Apache License 2.0
1.41k stars 266 forks source link

Displaying metadata on model elements #265

Closed jaxley closed 1 year ago

jaxley commented 1 year ago

Question

I've been playing with Structurizr and did not see a way to surface metadata about the objects in the views. e.g. imagine wanting to generate a deployment model from a cloudformation stack or similar - you'd want to include information like subnets, VPC ids, IP addresses, etc. to differentiate between nodes and maybe even pull tag information. The properties bucket looks like the way to add arbitrary data to the model, but I don't see any way to render any of that data on the diagrams. That may be due to the properties being used as structurizr internal config directives in the examples I've seen.

Is this something on the roadmap?

draw.io supports adding metadata and displaying it on c4 diagrams: https://www.drawio.com/blog/c4-modelling

I'm also thinking it would be powerful to be able to use the metadata in c4 diagrams like you would with archimate Label Expressions https://declanbright.com/archimate-archi-tips-and-tricks.php#label-expressions. Currently, it looks like variables are limited to constants?

Cheers!