FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

digitalocean_volume

Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.

Example Usage

resource "digitalocean_volume" "foobar" {
    region      = "nyc1"
    name        = "baz"
    size        = 100
    description = "an example volume"
}

resource "digitalocean_droplet" "foobar" {
    name       = "baz"
    size       = "1gb"
    image      = "coreos-stable"
    region     = "nyc1"
    volume_ids = ["${digitalocean_volume.foobar.id}"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Volumes can be imported using the volume id, e.g.

terraform import digitalocean_volume.volumea 506f78a4-e098-11e5-ad9f-000f53306ae1

See the source of this document at Terraform.io