---
title: Attach Instances
url: https://docs.vultr.com/products/storage/file-system/management/attach-instances
description: Learn how to connect and manage Vultr File System volumes with your instances for shared storage access.
publish_date: 2024-11-13T22:18:59.277793Z
last_updated: 2026-05-26T19:42:31.194363Z
---

# How to Manage Attachments for Vultr File System Volume

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 Console or Terraform.

=== "Vultr Console"

    1. Navigate to **Products** and select **Compute**.
    1. Click the Vultr Cloud Compute instance you want to attach to the Vultr File System volume.
    1. Navigate to **Settings** and click **Change Memory Backing**. Select **Shared** and click **Update**.
    1. Navigate to **Products** and select **Cloud Storage**. Then, click **File System**.
    1. Select the target Vultr File System volume you want to attach to the Vultr Cloud Compute instance.
    1. Navigate to the **File System Information** and click **Attachments**. 
    1. Click **Attach** to attach the Vultr File System volume to your target Vultr Cloud Compute instance.
    1. Confirm the new change.
    1. Navigate to **Attachments** and click **Detach** to remove the Vultr File System volume from the Vultr Cloud Compute instance.

=== "Terraform"

    1. Open your existing Terraform configuration for the File System volume (and instances).

    1. Attach: set `attached_instances` on the `vultr_vfs` resource and apply.

        ```terraform
        resource "vultr_vfs" "file_system" {
            # ...existing fields (label, region, size_gb)
            attached_instances = [
                vultr_instance.app1.id,
                # vultr_instance.app2.id
            ]
        }
        ```

    1. Detach: remove instance IDs from the list (or set it to an empty list), then apply.

        ```terraform
        resource "vultr_vfs" "file_system" {
            # ...existing fields (label, region, size_gb)
            attached_instances = []
        }
        ```

    1. Ensure each instance has Memory Backing set to "Shared" (Settings > Change Memory Backing > Shared) before attaching.
