digitalocean_nfs
Generated on 15 Jan 2026
from Terraform version
v2.73.0
Provides a DigitalOcean NFS share which can be mounted to Droplets to provide shared storage.
Example Usage
resource "digitalocean_vpc" "example" {
name = "example-vpc"
region = "nyc1"
}
resource "digitalocean_nfs" "example" {
region = "nyc1"
name = "example-nfs"
size = 50
vpc_id = digitalocean_vpc.example.id
}Argument Reference
The following arguments are supported:
region- (Required) The region where the NFS share will be created.name- (Required) A name for the NFS share. Must be lowercase and composed only of numbers, letters, and “-”, up to a limit of 64 characters. The name must begin with a letter.size- (Required) The size of the NFS share in GiB. Minimum size is 50 GiB.vpc_id- (Required) The ID of the VPC where the NFS share will be created.
Attributes Reference
The following attributes are exported:
id- The unique identifier for the NFS share.name- Name of the NFS share.region- The region where the NFS share is created.size- The size of the NFS share in GiB.vpc_id- The ID of the VPC where the NFS share is located.status- The current status of the NFS share.created_at- The date and time when the NFS share was created.host- The host IP of the NFS server accessible from the associated VPC.mount_path- The mount path for accessing the NFS share.
Import
NFS shares can be imported using the share id and the region , e.g.
terraform import digitalocean_nfs.foobar 506f78a4-e098-11e5-ad9f-000f53306ae1,atl1