Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate file upload from Google Cloud Storage to Bigquery

We have an automated FTP process set up which imports a data file into Google Cloud Storage daily.

I would like to set up a daily automated job that uploads this csv into a bigquery table.

What is the best way to do this? My current first thought is to set up an app engine instance with a cron job that runs a python script every day. Is there a better solution?

like image 766
bbodek Avatar asked Jan 10 '18 23:01

bbodek


1 Answers

Background Cloud Function with a Cloud Storage trigger is your best choice!

You can set it to monitor specific bucket for new files and execute load script whenever trigger is fired

Forgot to mention - Cloud Functions support (as of now) only node.js for scripting - which usually not a problem but just wanted to mention :o)

like image 147
Mikhail Berlyant Avatar answered Sep 28 '22 08:09

Mikhail Berlyant