Skip to main content
Version: 3.2.6

Configure DigitalOcean Resource Collection

The DigitalOcean collector is configured within the Resoto Worker configuration via the config command in Resoto Shell.

Enabling the Collectorโ€‹

  1. Open the Resoto Worker configuration via the config command in Resoto Shell:

    > config edit resoto.worker
  2. Add digitalocean to the list of collectors by modifying the configuration as follows:

    resotoworker:
    ...
    # List of collectors to run
    collector:
    - 'digitalocean'
    ...
    ...

Authenticationโ€‹

DigitalOcean uses access tokens to authenticate API requests. You can provide access tokens to Resoto via the Resoto Worker configuration or environment variables.

  1. Open the Resoto Worker configuration via the config command in Resoto Shell:

    > config edit resoto.worker
  2. Modify the digitalocean section of the configuration as follows, adding your API tokens and/or access keys:

    digitalocean:
    # DigitalOcean API tokens for the teams to be collected
    api_tokens:
    - 'dop_v1_e5c759260e6a43f003f3b53e2cfec79cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    # DigitalOcean Spaces access keys for the teams to be collected, separated by colons
    spaces_access_keys: []
    ...

Resource Collectionโ€‹

By default, Resoto performs resource collection each hour. To immediately trigger a collect run, use the workflow run command in Resoto Shell:

> workflow run collect

Once the collect run completes, you can view a summary of collected DigitalOcean resources using the following search:

> search is(digitalocean_resource) | count kind