github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/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 ARM 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 ``` 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 32 ## Argument Reference 33 34 The following arguments are supported: 35 36 * `name` - (Required) name of volume 37 * `size_in_gb` - (Required) size of the volume in GB 38 * `type` - (Required) type of volume 39 40 ## Attributes Reference 41 42 The following attributes are exported: 43 44 * `id` - id of the new resource 45 46 ## Import 47 48 Instances can be imported using the `id`, e.g. 49 50 ``` 51 $ terraform import scaleway_volume.test 5faef9cd-ea9b-4a63-9171-9e26bec03dbc 52 ```