Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Destinations

Connect Google Cloud Storage as a destination

Create a service account and connect a Google Cloud Storage (GCS) bucket, so your pipeline writes append-only Parquet files to it.

Create a service account

Artie signs in to Google Cloud with a service account key. This Terraform script creates the service account, grants it two roles on your bucket and creates a key.

HCL
provider "google" {
  project = "your-gcp-project-id"
  region  = "us-central1"
}

resource "google_service_account" "artie_transfer" {
  account_id   = "artie-transfer"
  display_name = "Artie Transfer Service Account"
  description  = "Service account for Artie to write to GCS"
}

resource "google_storage_bucket_iam_member" "bucket_object_admin" {
  bucket = "your-bucket-name"
  role   = "roles/storage.objectAdmin"
  member = "serviceAccount:${google_service_account.artie_transfer.email}"
}

resource "google_storage_bucket_iam_member" "bucket_viewer" {
  bucket = "your-bucket-name"
  role   = "roles/storage.bucketViewer"
  member = "serviceAccount:${google_service_account.artie_transfer.email}"
}

resource "google_service_account_key" "artie_transfer_key" {
  service_account_id = google_service_account.artie_transfer.name
}

output "service_account_email" {
  value = google_service_account.artie_transfer.email
}

output "service_account_key" {
  value     = base64decode(google_service_account_key.artie_transfer_key.private_key)
  sensitive = true
}

Replace your-gcp-project-id with your Google Cloud project ID and both your-bucket-name values with your bucket. The service_account_key output is the JSON key you paste into Artie.

Add the destination in Artie

In a new pipeline, the setup checklist has a Destination section. Follow these steps there.

  1. Choose the destination

    On the Choose destination step, select Google Cloud Storage.

  2. Prepare the service account

    On the Prepare destination step, run the Terraform script, then select Continue. The step shows the same script as Create a service account.

  3. Enter the settings

    On the Connect and verify step, fill in the required settings.

  4. Verify the destination

    Select Verify destination. The step shows Destination verified.

Verify destination is available once the pipeline has tables. To check the destination later, select Verify later.

If you choose an existing Google Cloud Storage destination, setup skips Prepare destination. Connect and verify shows its connection details read-only, so you fill in only the bucket settings for this pipeline.

To change the bucket settings on an existing pipeline, open its Destination: Google Cloud Storage tab.

Required settings

Each field name matches its label in the Dashboard.

FieldValue
GCP Project IDYour Google Cloud project ID: 6 to 30 lowercase letters, digits and hyphens. It starts with a letter and ends with a letter or digit.
Service account JSON credentialsThe service account’s JSON key. Its type must be service_account.
Bucket nameThe bucket Artie writes to.

Optional settings

These fields set where files land inside the bucket.

FieldDefaultValue
Folder name (optional)NoneA folder inside the bucket. Artie stores every file under it.
Table name separator/The text that joins the database, schema and table name in each file’s path.

Bucket structure

Artie writes append-only Parquet files to your GCS bucket. The files use GZIP compression. Artie does not create a Delta transaction log.

Each file’s path follows this layout:

Text
/BUCKET_NAME/[FOLDER_NAME/]TABLE_PATH/date=YYYY-MM-DD/UNIX_TIMESTAMP_MS_RANDOM.parquet

Artie fills each part of the path as follows.

PartValue
BUCKET_NAMEThe value of Bucket name.
FOLDER_NAMEThe value of Folder name (optional). Artie leaves this part out when the field is empty.
TABLE_PATHThe database, schema and table name, joined with the table name separator. With the default separator: gcs/SCHEMA/TABLE.
date=YYYY-MM-DDThe date Artie writes the file. The date= prefix follows Hive’s partitioning format.
UNIX_TIMESTAMP_MSA Unix timestamp in milliseconds.
RANDOM4 random letters or digits.

GCS has no databases, so the database part of TABLE_PATH is always gcs. The schema part is the source table’s schema, or public when the source table has none.

The table part is the table’s name in lowercase. For a table outside the source’s default schema, Artie usually adds the schema to the name too: PostgreSQL’s sales.orders lands under gcs/sales/sales_orders.

For example, a pipeline with bucket artie and folder foo writes the orders table from the public schema to this path:

Text
/artie/foo/gcs/public/orders/date=2026-08-21/1787322600000_abc1.parquet

Was this page helpful?