digitalocean_custom_image

Provides a resource which can be used to create a custom image from a URL. The URL must point to an image in one of the following file formats:

The image may be compressed using gzip or bzip2. See the DigitalOcean Custom Image documentation for additional requirements.

Example Usage

resource "digitalocean_custom_image" "flatcar" {
  name    = "flatcar"
  url     = "https://stable.release.flatcar-linux.net/amd64-usr/2605.7.0/flatcar_production_digitalocean_image.bin.bz2"
  regions = ["nyc3"]
}

resource "digitalocean_droplet" "example" {
  image    = digitalocean_custom_image.flatcar.id
  name     = "example-01"
  region   = "nyc3"
  size     = "s-1vcpu-1gb"
  ssh_keys = [12345]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: