https://prefect.io logo
t

Tamas Szuromi

02/12/2022, 11:32 PM
How can I use *`prefect.utilities.gcp.get_storage_client` for
Flow(...*storage=GCS(bucket=...
? I'd create a client myself and without using
GOOGLE_APPLICATION_CREDENTIALS
. Can someone point me to the right direction?
k

Kevin Kho

02/12/2022, 11:38 PM
So you can authenticate in two ways: 1. GOOGLE_APPLICATION_CREDENTIALS on the execution environment 2. A secret named
GCP_CREDENTIALS
that contains the service account key as seen here To create the client, that utility function will create the credentials and pass it to the client here
t

Tamas Szuromi

02/13/2022, 6:47 AM
Great, thanks so much!
6 Views