https://dagster.io/ logo
Title
p

Pranit Sherkar

11/30/2022, 4:34 PM
Hello everyone, I use a native bigquery client from library and it uses
GOOGLE_APPLICATION_CREDENTIALS
which is a JSON file of service account. While deploying this code it gives obvious error of
'google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application
How can I tackle this? I dont want to use other Bigquery IO managers as it will need me to change code I have already Let me know
:dagster-bot-responded-by-community: 1
q

Qwame

11/30/2022, 5:07 PM
Just create a .env file in the root of your project and put this environment variable in there
.env
GOOGLE_APPLICATION_CREDENTIALS=path-to-creds
p

Pranit Sherkar

12/01/2022, 4:03 AM
And where will that file reside in serverless?