Heroku Source PluginLatest: v3.1.8
The CloudQuery Heroku plugin extracts your Heroku data and loads it into any supported CloudQuery destination (e.g. PostgreSQL).
The CloudQuery Heroku plugin requires an OAuth token. After creating it, you
will need to copy the token into your
heroku.yml file (See example below):
... token: <Token HERE>
A token can be generated using the Heroku CLI.
Install the Heroku CLI: Follow the official instructions (opens in a new tab) to install the Heroku CLI.
Generate an OAuth token: With the Heroku CLI installed, use your terminal to run:
heroku authorizations:create --short --description="CloudQuery token" --scope="read,identity"
(For additional options for this command, such as expiry, see the Heroku CLI commands documentation (opens in a new tab))
It is also possible to manage OAuth tokens directly through the Heroku API. For more information, see the Heroku documentation (opens in a new tab).
CloudQuery needs to be authenticated with your Heroku account's token in order to fetch information about your Heroku resources.
CloudQuery requires only read permissions (we will never make any changes to your Heroku account or apps).
Following the principle of least privilege, it is recommended to grant it read-only permissions. The
parameter suggested above achieves this.
However, certain Heroku resources require a
global scope, even for reading. At the time of writing, these resources are:
If you are interested in fetching any of these resources, a
global scope will be necessary. See the Heroku documentation for more information about OAuth scopes on Heroku (opens in a new tab).