Skip to content

Commit

Permalink
fix: add arrow head on example of alb-ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
ugwis committed Mar 30, 2024
1 parent 0ced59a commit 5c558ab
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions doc/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,37 @@ The start and end points of the line specify the location as the 16-wind rose of

![position](static/position.png)

```
Diagrams:
Resources:
ALB: ...
PublicSubnet1Instance: ...
PublicSubnet2Instance: ...
Links:
- Source: ALB # (required)
SourcePosition: NNW # (required)
Target: PublicSubnet1Instance # (required)
TargetPosition: S # (required)
- Source: ALB # (required)
SourcePosition: NNE # (required)
Target: PublicSubnet2Instance # (required)
TargetPosition: S # (required)
```

### Arrow head

Arrows add context and meaning to a diagram by indicating the direction of flow.

![arrow head](static/arrows.png)
(generated from [static/arrows.yaml](static/arrows.yaml))

### Example
```
Diagrams:
Resources:
ALB: ...
PublicSubnet1Instance: ...
PublicSubnet2Instance: ...
Links:
- Source: ALB
SourcePosition: NNW
Target: PublicSubnet1Instance
TargetPosition: S
- Source: ALB
SourcePosition: NNE
Target: PublicSubnet2Instance
TargetPosition: S
Target: VPCPublicSubnet1Instance
TargetPosition: SSE
TargetArrowHead: #(optional)
Type: Open #(required) Open/Default
Width: Default # (optional) Narrow/Default/Wide default="Default"
Length: 2 # (optional) default=2
```

0 comments on commit 5c558ab

Please sign in to comment.