Terraform resource: digitalocean droplet

From wikieduonline
(Redirected from Digitalocean droplet)
Jump to navigation Jump to search
# Create a new Web Droplet in the nyc2 region
resource "digitalocean_droplet" "web" {
  image   = "ubuntu-20-04-x64"
  name    = "web-1"
  region  = "nyc2"
  size    = "s-1vcpu-1gb"
  backups = true
  backup_policy {
    plan    = "weekly"
    weekday = "TUE"
    hour    = 8
  }
}



Terraform DigitalOcean

doctl compute [ droplet | droplet-action | volume ]

Advertising: