workspace.yaml
workspace.yaml is the one file at the root of the Workspace folder. It defines the Teams that own Elements and the Environments that Services run in, once, so every Project means the same thing by payments or prod. Everything else belongs to a Project.
Example
Section titled “Example”The Kitchen sink’s:
# Kitchen sink: one of every Element type and state the viewer draws.teams: core: name: Core edge: name: Edge data: name: Dataenvironments: prod: name: ProductionFields
Section titled “Fields”workspace.yaml sits at the Workspace root and defines the Teams and Environments every Project uses.
Generated from schemas/workspace.schema.json, which editors use for completion, validation and these descriptions on hover. In the Field column, <id> stands for a key you choose. A key that isn’t listed here is an error: unknown-field.
In the Type column:
- id: a lowercase slug of
a-z,0-9and-that starts with a letter or a digit (^[a-z0-9][a-z0-9-]*$). - URL: a full URL with its scheme, such as
https://shop.example.com.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
teams |
map of id → object | The Teams of the Workspace, keyed by id. Every owner in every Project names one of these ids. |
||
teams.<id> |
object | A Team: a group that can own Elements and Deployment Targets. Its key is the Team’s id. | ||
teams.<id>.name |
string | yes | The Team’s display name. | |
teams.<id>.description |
string | A short description of the Team. | ||
teams.<id>.links |
list of Link | Links to pages about the Team. |
environments
Section titled “environments”| Field | Type | Required | Default | Description |
|---|---|---|---|---|
environments |
map of id → object | The Environments of the Workspace, keyed by id. Every Deployment in every Project names one of these ids. | ||
environments.<id> |
object | An Environment: a named stage that Services run in, such as prod or staging. Its key is the Environment’s id. | ||
environments.<id>.name |
string | yes | The Environment’s display name, such as Production. |
|
environments.<id>.description |
string | A short description of the Environment. |
A link to a page about the thing it is declared on, such as a runbook or a dashboard.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
label |
string | yes | The text of the link, such as Runbook. |
|
url |
URL | yes | The page the link opens. A full URL, such as https://wiki.example.com/runbooks/web. |
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.