Icons¶
Import an icon pack with use icons, then place an icon with
pack:name. The aws pack ships with SheepText, so it works offline:
An AWS icon
use icons aws
icon aws:server
An icon is a shape like any other: give it a caption, a size (in units),
and a position:
Captioned icon
use icons aws
icon aws:database "Primary DB" size 64 at (120, 80)
The bundled aws pack includes server, database, users,
client, lambda, amazon-api-gateway, and amazon-rekognition.
Use labelside to place an icon’s caption on a chosen side — top keeps a
row of icons tidy by lifting every label clear of the connecting arrows:
Icon label side
use icons aws
icon aws:users labelside top "Users"
Because icons are shapes, name them and connect them with arrows — combine that with automatic layout and a diagram assembles itself:
Icon flow
use icons aws
layout direction right
U: icon aws:users labelside top "Users"
G: icon aws:amazon-api-gateway labelside top "API Gateway"
F: icon aws:lambda labelside top "Handler"
arrow from U to G
arrow from G to F
Next: reuse values with Variables and expressions.