Networks

Constructing networks and affiliating nodes with these networks involves detailing the networks and their connections within the networks parameter. Each network necessitates a dedicated mapping under this parameter, identified by the network name for clarity and organization.

In the following example, two networks, frontend and backend, are described. The frontend network is accompanied by an attached node, whereas the backend network currently has no associated nodes.

yaml
networks:
  frontend: 
    nodes: website
  backend:

Parameters

Nodes

Parameter nameValue typeValue
nodesstring or listone or more explicitely-defined or implicitely-defined nodes

INFO

If any of the node names mentioned in the nodes parameter are also explicitly described under the broader nodes configuration, the parameters specified in the nodes section will dictate the visual attributes of the node. Conversely, if a node name lacks a specific definition, a default appearance will be generated for that node.

Example

yaml
nodes:
  LB:
    label: API Load Balancer
    color: orange

networks:
  frontend:
    nodes: [Website, LB]     #list of nodes, one implicitely-defined and one explicitely-defined
  backend:
    nodes: DB

Label

Parameter nameValue typeValue
labelstringany

The label parameter offers the option to customize a label for the designated network. In cases where it is not explicitly defined, the network's name is automatically employed as the default label.

Example

yaml
networks:
  frontend:
    nodes: [Website, LB]
    label: Frontend Network on AWS EMEA VCN

Color

Parameter nameValue typeValue
colorstringany HTML color (prefixed with #) or a color from the built-in colors

The color parameter facilitates the customization of the network line and its connections with nodes. When left unspecified, an automatically chosen color ensures a harmonious and visually cohesive color palette.

INFO

Since the "#" symbol denotes the beginning of a comment, HTML colors (which start with #) must be enclosed in double quotes to prevent ambiguity.

Example

yaml
networks:
  frontend:
    nodes: [Website, LB]
    color: lightblue  #picked from the built-in colors
  backend:
    nodes: DB
    color: "#4dd0e1"  #HTML color enclosed in double quotes