Skip to content

Commit

Permalink
update documentation for droplets: add backup policy to droplet resou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
loosla committed Nov 12, 2024
1 parent 924c3ed commit bc16146
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/resources/droplet.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ resource "digitalocean_droplet" "web" {
name = "web-1"
region = "nyc2"
size = "s-1vcpu-1gb"
backups = true
backup_policy {
plan = "weekly"
weekday = "TUE"
hour = 8
}
}
```

Expand All @@ -31,6 +37,7 @@ The following arguments are supported:
* `size` - (Required) The unique slug that identifies the type of Droplet. You can find a list of available slugs on [DigitalOcean API documentation](https://docs.digitalocean.com/reference/api/api-reference/#tag/Sizes).
* `backups` - (Optional) Boolean controlling if backups are made. Defaults to
false.
* `backup_policy` - (Optional) An object specifying the backup policy for the Droplet. If omitted and `backups` is `true`, the backup plan will default to daily.
* `monitoring` - (Optional) Boolean controlling whether monitoring agent is installed.
Defaults to false. If set to `true`, you can configure monitor alert policies
[monitor alert resource](/providers/digitalocean/digitalocean/latest/docs/resources/monitor_alert)
Expand Down

0 comments on commit bc16146

Please sign in to comment.