Manage Raff block storage volumes with Terraform. NVMe SSD volumes, sized in GB, attached to a single VM at a time. Resize is in-place; reattach is in-place.
Updated May 10, 2026Manages a Raff block storage volume — NVMe SSD, sized in GB, region-pinned, attached to one VM at a time. Volumes can be created standalone and attached later, or attached at create time.
resource "raff_volume" "data" { name = "data-01" size = 250 volume_type = "nvme" region = "us-east" filesystem_type = "ext4" # only used on first attach vm_id = raff_vm.api.id}
# Single volume by IDdata "raff_volume" "data" { id = 42}# All volumes in the current projectdata "raff_volumes" "all" {}output "volume_count" { value = length(data.raff_volumes.all.volumes)}