Prerequisites
- A Google Cloud project with BigQuery enabled.
- A service account with the BigQuery Data Viewer and BigQuery Job User roles (or equivalent).
- The service account’s JSON key file.
Required fields
| Field | Description |
|---|---|
| Name | A display name for this datasource. |
| Service account | The full JSON key for your GCP service account. Paste the entire contents of the downloaded .json file. |
Steps
- Open Settings → Datasources → New.
- Enter a name and select Google BigQuery as the type.
- Paste your service account JSON into the Service account field.
- Click Test connection to verify.
- Click Create.
Creating a service account
If you don’t have a service account yet:- Go to the GCP Console → IAM & Admin → Service Accounts.
- Click Create Service Account.
- Give it a name (e.g.
mora-reader) and click Create and Continue. - Grant the roles BigQuery Data Viewer and BigQuery Job User.
- Click Done, then click into the new service account.
- Go to the Keys tab, click Add Key → Create new key, select JSON, and download the file.
- Paste the contents of that file into Mora.