github.com/bradfeehan/terraform@v0.7.0-rc3.0.20170529055808-34b45c5ad841/website/source/docs/providers/scaleway/r/server.html.markdown (about) 1 --- 2 layout: "scaleway" 3 page_title: "Scaleway: server" 4 sidebar_current: "docs-scaleway-resource-server" 5 description: |- 6 Manages Scaleway servers. 7 --- 8 9 # scaleway\_server 10 11 Provides servers. This allows servers to be created, updated and deleted. 12 For additional details please refer to [API documentation](https://developer.scaleway.com/#servers). 13 14 ## Example Usage 15 16 ```hcl 17 resource "scaleway_server" "test" { 18 name = "test" 19 image = "5faef9cd-ea9b-4a63-9171-9e26bec03dbc" 20 type = "VC1M" 21 22 volume { 23 size_in_gb = 20 24 type = "l_ssd" 25 } 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `name` - (Required) name of server 34 * `image` - (Required) base image of server 35 * `type` - (Required) type of server 36 * `bootscript` - (Optional) server bootscript 37 * `tags` - (Optional) list of tags for server 38 * `enable_ipv6` - (Optional) enable ipv6 39 * `dynamic_ip_required` - (Optional) make server publicly available 40 * `security_group` - (Optional) assign security group to server 41 42 Field `name`, `type`, `tags`, `dynamic_ip_required`, `security_group` are editable. 43 44 ## Volume 45 46 You can attach additional volumes to your instance, which will share the lifetime 47 of your `scaleway_server` resource. 48 49 **Warning:** Using the `volume` attribute does not modify the System Volume provided default with every `scaleway_server` instance. 50 Instead it adds additional volumes to the server instance. 51 52 The `volume` mapping supports the following: 53 54 * `type` - (Required) The type of volume. Can be `"l_ssd"` 55 * `size_in_gb` - (Required) The size of the volume in gigabytes. 56 57 ## Attributes Reference 58 59 The following attributes are exported: 60 61 * `id` - id of the new resource 62 * `private_ip` - private ip of the new resource 63 * `public_ip` - public ip of the new resource 64 65 ## Import 66 67 Instances can be imported using the `id`, e.g. 68 69 ``` 70 $ terraform import scaleway_server.web 5faef9cd-ea9b-4a63-9171-9e26bec03dbc 71 ```