---
type: resource-type
title: Volume
description: fly resource type Fly::Machines::Volume
name: Volume
lexicon: fly
resource_type: Fly::Machines::Volume
---
`Fly::Machines::Volume`, a resource type of the fly lexicon.

## Properties

- `auto_backup_enabled` (`boolean`, optional): enable scheduled automatic snapshots. Defaults to `true`
- `compute` (`MachineGuest`, optional)
- `compute_image` (`string`, optional)
- `encrypted` (`boolean`, optional)
- `fstype` (`string`, optional)
- `name` (`string`, optional)
- `region` (`string`, optional)
- `require_unique_zone` (`boolean`, optional)
- `size_gb` (`number`, optional)
- `snapshot_id` (`string`, optional): restore from snapshot
- `snapshot_retention` (`number`, optional)
- `source_volume_id` (`string`, optional): fork from remote volume
- `unique_zone_app_wide` (`boolean`, optional)

## Governed by

- [FLY011](/rules/FLY011.md): A machine mount's volume must resolve to a Volume declared in the stack
