Skip to main content

What is this integration?

Provision and manage DigitalOcean managed databases.

Supported Engines

Note: Redis has been replaced by Valkey on DigitalOcean. If you want to use Redis, use valkey as the engine instead. For backwards compatibility, specifying engine: redis will automatically be mapped to valkey.

What Monk manages

  • Database clusters and configuration

Obtaining DigitalOcean Credentials

To use DigitalOcean Managed Databases with Monk, you’ll need a DigitalOcean API token.

What You’ll Need

  • Personal Access Token - DigitalOcean API token with read/write access
  • Optional: Default region (e.g., nyc1)

Step-by-Step

  1. Log into DigitalOcean at https://cloud.digitalocean.com
  2. Click API in the left sidebar
  3. Go to Tokens/Keys tab
  4. Click Generate New Token
  5. Token name: “Monk Deployment”
  6. Scopes: Check both Read and Write
  7. Click Generate Token
  8. Copy the token immediately - it’s shown only once
  9. Save it securely

Providing to Monk

When deploying to DigitalOcean, ask Monk:
Monk will request your DigitalOcean credentials if not already configured.

Security Best Practices

Rotate tokens regularly - Generate new tokens every 90 days ✅ Revoke unused tokens - Remove old tokens from DigitalOcean ✅ Use minimal scopes - Read + Write is sufficient for Monk ✅ Monitor usage - Check DigitalOcean activity logs

Getting Started

  1. Provide DigitalOcean credentials to Monk when prompted
  2. Define a PostgreSQL cluster (save as do-db.yaml):
  1. Create/update:

Backup & Restore Actions

DigitalOcean managed databases include automatic daily backups with 7-day retention.

Restore Example

Note: Restore creates a NEW independent cluster (no in-place restore). PITR is supported for PostgreSQL and MySQL only.

Composing with Other Entities

Use connection-target to wire your app to a DigitalOcean managed database and read connection details from its state: