dbt_cloud
How to get these credentialsdbt Cloud API credentials: a service or personal access token, the account id and the account's access URL.
CREATE SECRET dbt_cloud (
TYPE dbt_cloud,
token '<DBT_CLOUD_TOKEN>', -- secret
account_id '<account_id>',
base_url '<base_url>',
discovery_url '<discovery_url>',
environment_id '<environment_id>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| token secret | VARCHAR | — | dbt Cloud service token or personal access token, sent as 'Authorization: Token <token>'. |
| account_id | VARCHAR | — | Numeric dbt Cloud account id (Account settings, or the number after /accounts/ in a dbt Cloud URL). |
| base_url | VARCHAR | — | Access URL of the account, e.g. https://cloud.getdbt.com (North America), https://emea.dbt.com, https://au.dbt.com, or a cell/single-tenant host such as https://ab123.us1.dbt.com. Default https://cloud.getdbt.com. |
| discovery_url | VARCHAR | — | Discovery (metadata) GraphQL endpoint. Derived from base_url when omitted, e.g. https://metadata.cloud.getdbt.com/graphql. |
| environment_id | VARCHAR | — | Default environment id for the Discovery API functions (cloud.models, cloud.tests, cloud.sources). |
The worker doesn't mark which keys are required.
Needed by runstask_runsartifact_infocatalog_columnsdepends_onexposuresgroupsmacrosmetricsnode_columnsnodesrun_results and 10 more functions