Hiranya Jayathilaka
1 min readAug 14, 2018

--

GCS client does not accept a service account ID. It just auto-discovers one when running on Google-managed infrastructure. Quoting from my post:

The GCS library for Node.js does support IAM-based signing now, when deployed in Google-managed runtimes. It basically implements steps 1 and 4 of the new signing protocol used by the Firebase Admin SDK.

For Cloud Functions, simply initializing the SDK without any credentials or options should do the trick.

--

--

Hiranya Jayathilaka
Hiranya Jayathilaka

Written by Hiranya Jayathilaka

Software engineer at Shortwave. Ex-Googler. PhD in CS. Enjoys working on cloud, mobile and programming languages. Fan of all things tech and open source.

Responses (1)