github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  The `volume` mapping supports the following:
    50  
    51  * `type` - (Required) The type of volume. Can be `"l_ssd"`
    52  * `size_in_gb` - (Required) The size of the volume in gigabytes.
    53  
    54  ## Attributes Reference
    55  
    56  The following attributes are exported:
    57  
    58  * `id` - id of the new resource
    59  * `private_ip` - private ip of the new resource
    60  * `public_ip` - public ip of the new resource
    61  
    62  ## Import
    63  
    64  Instances can be imported using the `id`, e.g.
    65  
    66  ```
    67  $ terraform import scaleway_server.web 5faef9cd-ea9b-4a63-9171-9e26bec03dbc
    68  ```