FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

digitalocean_droplet

Provides a DigitalOcean Droplet resource. This can be used to create, modify, and delete Droplets. Droplets also support provisioning.

Example Usage

# Create a new Web Droplet in the nyc2 region
resource "digitalocean_droplet" "web" {
    image = "ubuntu-14-04-x64"
    name = "web-1"
    region = "nyc2"
    size = "512mb"
}

Argument Reference

The following arguments are supported:

-> Note: When resizing a Droplet, only a bigger Droplet size can be chosen.

Attributes Reference

The following attributes are exported:

Import

Droplets can be imported using the droplet id, e.g.

terraform import digitalocean_droplet.mydroplet 100823

See the source of this document at Terraform.io