volume¶
The volume
configuration type allows creating, registering, and updating volumes.
Configuration files must be inside the project repo, and their names must end with
.dstack.yml
(e.g..dstack.yml
orfleet.dstack.yml
are both acceptable). Any configuration can be run viadstack apply
.
Examples¶
Creating a new volume¶
type: volume
# The name of the volume
name: my-new-volume
# Volumes are bound to a specific backend and region
backend: aws
region: eu-central-1
# The size of the volume
size: 100GB
Registering an existing volume¶
type: volume
# The name of the volume
name: my-existing-volume
# Volumes are bound to a specific backend and region
backend: aws
region: eu-central-1
# The ID of the volume in AWS
volume_id: vol1235