github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/scaleway/r/volume_attachment.html.markdown (about) 1 --- 2 layout: "scaleway" 3 page_title: "Scaleway: volume attachment" 4 sidebar_current: "docs-scaleway-resource-volume attachment" 5 description: |- 6 Manages Scaleway Volume attachments for servers. 7 --- 8 9 # scaleway\_volume\_attachment 10 11 This allows volumes to be attached to servers. 12 13 **Warning:** Attaching volumes requires the servers to be powered off. This will lead 14 to downtime if the server is already in use. 15 16 ## Example Usage 17 18 ``` 19 resource "scaleway_server" "test" { 20 name = "test" 21 image = "aecaed73-51a5-4439-a127-6d8229847145" 22 type = "C2S" 23 } 24 25 resource "scaleway_volume" "test" { 26 name = "test" 27 size_in_gb = 20 28 type = "l_ssd" 29 } 30 31 resource "scaleway_volume_attachment" "test" { 32 server = "${scaleway_server.test.id}" 33 volume = "${scaleway_volume.test.id}" 34 } 35 ``` 36 37 ## Argument Reference 38 39 The following arguments are supported: 40 41 * `server` - (Required) id of the server 42 * `volume` - (Required) id of the volume to be attached 43 44 ## Attributes Reference 45 46 The following attributes are exported: 47 48 * `id` - id of the new resource