Terpli Redshift to BigQuery ETL Migration

GCP-based ETL executor that migrates Terpli's analytics pipeline from Redshift to BigQuery, orchestrating SQL scripts, backups, merged views, observability, and CI/CD.

Terpli Redshift to BigQuery ETL Migration

Project overview

Terpli needed to evolve its legacy Redshift analytics pipeline into a BigQuery architecture without losing continuity with historical data. We built a Node.js executor for GCP that discovers, orders, and executes versioned SQL scripts by stage, records every statement status in BigQuery, sends Slack notifications, and emits structured logs to Cloud Logging. The pipeline runs as a Cloud Run Job triggered daily by Cloud Scheduler, with its image in Artifact Registry, secrets in Secret Manager, and infrastructure managed with Terraform.

Terpli Redshift to BigQuery ETL migration and orchestration diagram
High-level flow for the GCP ETL executor: Redshift replication, BigQuery stages, merged views, Cloud Run Jobs, and observability.

Challenge

Keep Terpli's old Redshift-replicated layer running alongside the new BigQuery layer while preserving backups, statement-level traceability, partial restart controls, and a final layer consumable by dashboards, APIs, and data science.

Solution

Implemented a GCP orchestrator with BACKUP, NEW_TERPLI, and MERGED stages: EXPORT DATA snapshots to Cloud Storage, SQL transformation for the new Terpli layer in BigQuery, and merged_* views that union old Terpli and new Terpli with explicit origin metadata for analytics consumption.

Tech Stack

  • Node.js
  • BigQuery
  • Cloud Run Jobs
  • Terraform
  • GitHub Actions

Technical scope

  • Node.js orchestration for ordered SQL script stages
  • Cloud Run Jobs with Cloud Scheduler daily execution
  • EXPORT DATA backups to Cloud Storage
  • Structured logs, statement status, and Slack alerts

Let's build something amazing?

We are ready to understand your technical challenge and propose the best architecture. Contact us for an initial consultation without commitment.

OnTimeStack

© 2026 OnTimeStack. All rights reserved.

Privacy Policy
Designed by Sarah Ninsi