Skip to content

DigitalOcean ​

Authentication ​

DigitalOcean uses a single personal access token. Generate one from the DigitalOcean dashboard with read and write scopes.

FieldRequiredDescription
api_tokenYesPersonal access token

Configuration ​

yaml
providers:
  digitalocean:
    api_token: "${DIGITALOCEAN_TOKEN}"
    region: nyc3
    image: ubuntu-24-04-x64
    size: s-2vcpu-4gb

defaults:
  provider: digitalocean

Regions ​

Common regions:

SlugLocation
nyc1, nyc3New York
sfo3San Francisco
ams3Amsterdam
sgp1Singapore
lon1London
fra1Frankfurt
blr1Bangalore
tor1Toronto
syd1Sydney

Run managed providers regions digitalocean to list all available regions.

Sizes ​

Sizes follow the pattern s-{vcpu}vcpu-{ram}gb for shared CPU plans:

SlugSpecs
s-1vcpu-1gb1 vCPU, 1 GB RAM, 25 GB disk
s-2vcpu-4gb2 vCPU, 4 GB RAM, 80 GB disk
s-4vcpu-8gb4 vCPU, 8 GB RAM, 160 GB disk

Run managed providers sizes digitalocean --region nyc3 to list all available sizes in a region.

Images ​

Use the image slug for the OS you want:

SlugOS
ubuntu-22-04-x64Ubuntu 22.04 LTS
ubuntu-24-04-x64Ubuntu 24.04 LTS
debian-12-x64Debian 12

Auto storage ​

DigitalOcean supports auto-provisioned storage via Spaces. When a service needs backup storage, managed automatically:

  1. Creates a Spaces access key
  2. Creates an S3-compatible bucket in the configured region
  3. Stores credentials in state for service scripts to use

No additional configuration is needed.

Networking ​

DigitalOcean servers are created with VPC private networking enabled. Servers in the same region automatically get private IPs for inter-server communication, which managed uses for service-to-service traffic.