OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI
OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI

Google Cloud Storage

Writes records to a single object in a Google Cloud Storage bucket. Each record is one line of JSON (NDJSON).

Usage

sinks:
  - name: gcs
    config:
      project_id: google-project-id
      url: gcs://bucket_name/target_folder
      service_account_base64: ____base64_encoded_service_account____

Configuration

KeyTypeDescriptionRequired
project_idstringGoogle Cloud project IDrequired
urlstringBucket and optional folder, e.g. gcs://bucket_name/target_folderrequired
object_prefixstringPrefix added to the object name, e.g. github-usersoptional
service_account_jsonstringService account key as JSONoptional
service_account_base64stringService account key as a base64 stringoptional

Provide either service_account_json or service_account_base64. The sink fails to start without one of them.

Output format

Each run creates one object named [folder/][prefix-]<RFC3339 timestamp>.ndjson in the bucket. Every line is the whole record as JSON: {"entity": {...}, "edges": [...]} with snake_case keys. The edges field is left out when a record has no edges.

FileHTTP
On this page
UsageConfigurationOutput format