Skip to content

Commit

Permalink
provider/digitalocean: Update of droplet document to add a note about
Browse files Browse the repository at this point in the history
resize

When resizing a DO droplet, you can only increase the size not
descrease. If you try and go down in size, the API will return this
error:

```
 * digitalocean_droplet.foobar: Error resizing droplet (17090364):
   POST https://api.digitalocean.com/v2/droplets/17090364/actions:
   422 Size can not decrease size of Droplet's disk image
```
  • Loading branch information
stack72 committed Jun 9, 2016
1 parent 57dda90 commit 84770e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/source/docs/providers/do/r/droplet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ The following arguments are supported:
* `image` - (Required) The droplet image ID or slug.
* `name` - (Required) The droplet name
* `region` - (Required) The region to start in
* `size` - (Required) The instance size to start
* `size` - (Required) The instance size to start

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

* `backups` - (Optional) Boolean controlling if backups are made. Defaults to
false.
* `ipv6` - (Optional) Boolean controlling if IPv6 is enabled. Defaults to false.
Expand Down

0 comments on commit 84770e6

Please sign in to comment.