github.com/ezbercih/terraform@v0.1.1-0.20140729011846-3c33865e0839/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 --- 6 7 # digitalocean\_droplet 8 9 Provides a DigitalOcean droplet resource. This can be used to create, 10 modify, and delete droplets. Droplets also support 11 [provisioning](/docs/provisioners/index.html). 12 13 ## Example Usage 14 15 ``` 16 # Create a new Web droplet in the nyc2 region 17 resource "digitalocean_droplet" "web" { 18 image = "ubuntu1404" 19 name = "web-1" 20 region = "nyc2" 21 size = "512mb" 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `image` - (Required) The droplet image ID or slug. 30 * `name` - (Required) The droplet name 31 * `region` - (Required) The region to start in 32 * `size` - (Required) The instance size to start 33 * `backups` - (Optional) Boolean controling if backups are made. 34 * `ipv6` - (Optional) Boolean controling if IPv6 is enabled. 35 * `private_networking` - (Optional) Boolean controling if private networks are enabled. 36 * `ssh_keys` - (Optional) A list of SSH IDs or fingerprints to enable. 37 38 ## Attributes Reference 39 40 The following attributes are exported: 41 42 * `id` - The ID of the droplet 43 * `name`- The name of the droplet 44 * `region` - The region of the droplet 45 * `image` - The image of the droplet 46 * `ipv6` - Is IPv6 enabled 47 * `ipv6_address` - The IPv6 address 48 * `ipv4_address` - The IPv4 address 49 * `locked` - Is the Droplet locked 50 * `private_networking` - Is private networking enabled 51 * `size` - The instance size 52 * `status` - The status of the droplet 53