Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/tutorials/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const client = new Client();

## Provision storage for the cache

Pick a region (`ord` or `ams`) that matches the sandboxes you plan to run.
Pick a region that matches the sandboxes you plan to run. Currently only `ord`
(Chicago) supports volumes.

We're going to provide 2 GB of storage for our training cache volume:

Expand Down
16 changes: 8 additions & 8 deletions sandbox/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const client = new Client();

const volume = await client.volumes.create({
slug: "training-cache",
region: "ord", // ord (Chicago) or ams (Amsterdam)
region: "ord", // only "ord" (Chicago) is supported today
capacity: "2GB", // accepts bytes or "1GB"/"512MB" style strings
});

Expand All @@ -54,7 +54,7 @@ sdk = DenoDeploy()

volume = sdk.volumes.create(
slug="training-cache",
region="ord", # ord (Chicago) or ams (Amsterdam)
region="ord", # only "ord" (Chicago) is supported today
capacity="2GB" # accepts bytes or "1GB"/"512MB" style strings
)

Expand All @@ -78,7 +78,7 @@ sdk = AsyncDenoDeploy()

volume = await sdk.volumes.create(
slug="training-cache",
region="ord", # ord (Chicago) or ams (Amsterdam)
region="ord", # only "ord" (Chicago) is supported today
capacity="2GB" # accepts bytes or "1GB"/"512MB" style strings
)

Expand All @@ -95,11 +95,11 @@ print(volume)
</deno-tab>
</deno-tabs>

| Field | Required | Details |
| ---------- | -------- | -------------------------------------------------------------------------------------------------------------------------- |
| `slug` | ✅ | Unique per organization. Slugs become part of the mount metadata, so pick something descriptive. |
| `region` | ✅ | Must match an available sandbox region (`"ord"` or `"ams"` today). Only sandboxes in the same region can mount the volume. |
| `capacity` | ✅ | Between 300 MB and 20 GB. Pass a number of bytes or a string with `GB/MB/KB` (decimal) or `GiB/MiB/KiB` (binary) units. |
| Field | Required | Details |
| ---------- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| `slug` | ✅ | Unique per organization. Slugs become part of the mount metadata, so pick something descriptive. |
| `region` | ✅ | Currently only `"ord"` (Chicago) is supported. Only sandboxes in the same region can mount the volume. |
| `capacity` | ✅ | Between 300 MB and 20 GB. Pass a number of bytes or a string with `GB/MB/KB` (decimal) or `GiB/MiB/KiB` (binary) units. |

### Inspect and search volumes

Expand Down
Loading