github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/do/r/droplet.html.markdown (about)

     1  ---
     2  layout: "digitalocean"
     3  page_title: "DigitalOcean: digitalocean_droplet"
     4  sidebar_current: "docs-do-resource-droplet"
     5  description: |-
     6    Provides a DigitalOcean droplet resource. This can be used to create, modify, and delete droplets. Droplets also support provisioning.
     7  ---
     8  
     9  # digitalocean\_droplet
    10  
    11  Provides a DigitalOcean droplet resource. This can be used to create,
    12  modify, and delete droplets. Droplets also support
    13  [provisioning](/docs/provisioners/index.html).
    14  
    15  ## Example Usage
    16  
    17  ```
    18  # Create a new Web droplet in the nyc2 region
    19  resource "digitalocean_droplet" "web" {
    20      image = "ubuntu-14-04-x64"
    21      name = "web-1"
    22      region = "nyc2"
    23      size = "512mb"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `image` - (Required) The droplet image ID or slug.
    32  * `name` - (Required) The droplet name
    33  * `region` - (Required) The region to start in
    34  * `size` - (Required) The instance size to start
    35  * `backups` - (Optional) Boolean controlling if backups are made.
    36  * `ipv6` - (Optional) Boolean controlling if IPv6 is enabled.
    37  * `private_networking` - (Optional) Boolean controlling if private networks are enabled.
    38  * `ssh_keys` - (Optional) A list of SSH IDs or fingerprints to enable in
    39     the format `[12345, 123456]`. To retrieve this info, use a tool such
    40     as `curl` with the [DigitalOcean API](https://developers.digitalocean.com/#keys),
    41     to retrieve them.
    42  * `user_data` (Optional) - A string of the desired User Data for the Droplet.
    43     User Data is currently only available in regions with metadata
    44     listed in their features.
    45  
    46  ## Attributes Reference
    47  
    48  The following attributes are exported:
    49  
    50  * `id` - The ID of the droplet
    51  * `name`- The name of the droplet
    52  * `region` - The region of the droplet
    53  * `image` - The image of the droplet
    54  * `ipv6` - Is IPv6 enabled
    55  * `ipv6_address` - The IPv6 address
    56  * `ipv6_address_private` - The private networking IPv6 address
    57  * `ipv4_address` - The IPv4 address
    58  * `ipv4_address_private` - The private networking IPv4 address
    59  * `locked` - Is the Droplet locked
    60  * `private_networking` - Is private networking enabled
    61  * `size` - The instance size
    62  * `status` - The status of the droplet
    63