Skip to main content
HealOps can write investigation findings directly to Google Drive as formatted Google Docs — creating a persistent, shareable record of each incident investigation linked to your team’s existing Drive folder.

Prerequisites

  • Google Cloud project with the Google Drive API enabled
  • Service account with access to a shared Drive folder

Setup

Option 1: Interactive CLI

Select Google Docs when prompted and provide your credentials file path and folder ID.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Creating a service account

  1. In Google Cloud Console, go to IAM & AdminService Accounts
  2. Click Create Service Account
  3. Give it a name (e.g., healops-docs) and click Create
  4. Skip role assignment and click Done
  5. Click on the service account → KeysAdd KeyCreate new key (JSON)
  6. Download the JSON file

Granting Drive folder access

  1. In Google Drive, open the folder where reports should be saved
  2. Click Share
  3. Add the service account email (e.g., healops-docs@your-project.iam.gserviceaccount.com)
  4. Set the permission to Editor

Finding the folder ID

The folder ID appears in the Drive URL: https://drive.google.com/drive/folders/<folder-id>

Verify

Expected output:

Troubleshooting

Security best practices

  • Keep the service account JSON file outside of your repository — add it to .gitignore.
  • Grant the service account access only to the specific Drive folder it needs.
  • Rotate the service account key periodically via Google Cloud Console.