Docs
My CompanyData Import

GCP setup guide

Prepare a GCP billing export in BigQuery and the read-only credentials emma needs to import your GCP costs.

Overview

This guide explains how to prepare your GCP account so that emma can access your billing data, and what credentials to provide during the connection setup.

emma reads your billing data from a BigQuery dataset you control — it never accesses your workloads or infrastructure.

Before you start

You need access to Google Cloud Console with:

  • Billing Account Administrator or Billing Account Viewer role
  • Permission to manage billing exports. If you have multiple billing accounts, you must set up export for each one separately
  • Permission to create IAM roles, Service Accounts and manage BigQuery datasets

Step 1 — Enable Billing Export to BigQuery

  1. Open GCP Billing Console and select your billing account.
  2. In the left menu, click Billing exportBigQuery export.
  3. Under Detailed cost data, click Edit settings.
  4. Select the GCP project that will host the dataset (e.g. my-company-billing-project).
  5. Create a new dataset or select an existing one.
Create dataset form
  1. Click Save.
Detailed cost data settings panel

GCP will automatically create a table named gcp_billing_export_v1_<billing_account_id> in the selected dataset.

Save the dataset name and table name — you will need them later.

Step 2 — Create a Service Account

This account will be used by emma to access your BigQuery dataset.

  1. Open IAM & AdminService Accounts → your project → Create Service Account.
  2. Fill in:
  • Service account name: e.g. emma-billing-reader
  • Description: e.g. Service account for emma billing data access
  1. Click Create and Continue.
Create service account form
  1. Add role: BigQuery Job User (roles/bigquery.jobUser).
  2. Click Done.
Create service account / Permissions form

Step 3 — Grant BigQuery Data Viewer on the dataset

  1. Open BigQuery ConsoleDatasets → your dataset
  2. Click ShareManage permissionsAdd Principal.
  3. Fill in:
  1. Click Save.
BigQuery dataset Permissions panel

Step 4 — Download the JSON key

  1. Open IAM & AdminService Accounts → your project → your service account (e.g. emma-billing-reader)
  2. Go to the Keys tab → Add KeyCreate new key.
  3. Select JSON and click Create. The file downloads automatically.

This JSON file is your Service Account JSON key. Store it securely.

What to enter in emma

FieldValue
Service account JSON keyThe .json file downloaded in Step 4
Project IDhttps://console.cloud.google.com
Dataset nameCopied from Step 1
Table nameCopied from Step 1
How is this guide?

Last updated on 12 Aug 2026

On this page