Difference between revisions of "Terraform resource: digitalocean droplet"

From wikieduonline
Jump to navigation Jump to search
(Created page with " # Create a new Web Droplet in the nyc2 region resource "digitalocean_droplet" "web" { image = "ubuntu-20-04-x64" name = "web-1" region = "nyc2" size...")
 
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
  
 
{{tf do}}
 
{{tf do}}
 +
 +
{{doctl compute}}

Latest revision as of 07:07, 20 December 2024

# 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: