Member-only story

How to run BigQuery jobs programmatically using AWS Lambda and save results to S3 as CSV.

💡Mike Shakhomirov
4 min readApr 6, 2020

--

Photo by Filiberto Santillán on Unsplash

Have you heard about Google BigQuery?

Have you ever wondered how to automate things and query it programmatically from AWS using Lambdas?

In this 20 minute tutorial, we’ll walk through building a Node.js Lambda function in AWS to run BigQuery jobs and save the result to AWS S3 bucket as CSV file.

Prerequisites:

If you don’t have any of these just create it. It’s Free.

Before starting, let’s think about what we need to do here. We will create a lambda function which does the following:

  • Authenticates with Google Cloud Platform using service account credentials.
  • Our Lambda will create a new query job in BigQuery.

--

--

💡Mike Shakhomirov
💡Mike Shakhomirov

Written by 💡Mike Shakhomirov

Data Engineer, Data Strategy and Decision Advisor, Keynote Speaker | linktr.ee/mshakhomirov | @MShakhomirov

Responses (2)