I would like to show different security groups of a cloud deployment as round corner rectangles.
If a node in the cloud is included into two groups at the same time then the groups containing it should overlap/intersect.
I've tried to use an alias within the second rectangle (group) containing the same element and got syntax error:
@startuml
rectangle A {
rectangle X as X1
rectangle Y
}
rectangle B {
X1
}
@enduml
Also I've tried to name with the same name the inner element included into both groups like this:
@startuml
rectangle A {
rectangle X
rectangle Y
}
rectangle B {
rectangle X
}
@enduml
It results in two separate rectangles with different X elements inside each rectangle.