Learn how to connect and manage Vultr File System volumes with your instances for shared storage access.
Attaching a Vultr File System volume to a Vultr Cloud Compute instance allows the instance to discover the serverless volume as a new storage device. You can then mount the Vultr File System volume to share files across different Vultr Cloud Compute instances. You can remove a Vultr File System volume from a Vultr Cloud Compute instance.
Follow this guide to manage attachments for Vultr File System volume using the Vultr Customer Portal or Terraform.
Open your existing Terraform configuration for the File System volume (and instances).
Attach: set attached_instances
on the vultr_vfs
resource and apply.
resource "vultr_vfs" "file_system" {
# ...existing fields (label, region, size_gb)
attached_instances = [
vultr_instance.app1.id,
# vultr_instance.app2.id
]
}
Detach: remove instance IDs from the list (or set it to an empty list), then apply.
resource "vultr_vfs" "file_system" {
# ...existing fields (label, region, size_gb)
attached_instances = []
}
Ensure each instance has Memory Backing set to "Shared" (Settings > Change Memory Backing > Shared) before attaching.
No comments yet.