github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/scaleway/r/volume.html.markdown (about) 1 --- 2 layout: "scaleway" 3 page_title: "Scaleway: volume" 4 sidebar_current: "docs-scaleway-resource-volume" 5 description: |- 6 Manages Scaleway Volumes. 7 --- 8 9 # scaleway\_volume 10 11 Provides volumes. This allows volumes to be created, updated and deleted. 12 For additional details please refer to [API documentation](https://developer.scaleway.com/#volumes). 13 14 ## Example Usage 15 16 ```hcl 17 resource "scaleway_server" "test" { 18 name = "test" 19 image = "aecaed73-51a5-4439-a127-6d8229847145" 20 type = "C2S" 21 volumes = ["${scaleway_volume.test.id}"] 22 } 23 24 resource "scaleway_volume" "test" { 25 name = "test" 26 size_in_gb = 20 27 type = "l_ssd" 28 } 29 ``` 30 31 ## Argument Reference 32 33 The following arguments are supported: 34 35 * `name` - (Required) name of volume 36 * `size_in_gb` - (Required) size of the volume in GB 37 * `type` - (Required) type of volume 38 39 ## Attributes Reference 40 41 The following attributes are exported: 42 43 * `id` - id of the new resource 44 45 ## Import 46 47 Instances can be imported using the `id`, e.g. 48 49 ``` 50 $ terraform import scaleway_volume.test 5faef9cd-ea9b-4a63-9171-9e26bec03dbc 51 ```