Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Configuration/authentication

Once you have a Google Cloud project created, then follow these steps to download the credentials file that is required to execute the code sample:

  1. Enable the Cloud Storage API for that project
  2. Create a service account
  3. Download a private key as JSON

On Linux or macOS, set the environmental variable GOOGLE_APPLICATION_CREDENTIALS to the path to which you downloaded the preceding private key JSON file:

export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"

For example:

export GOOGLE_APPLICATION_CREDENTIALS="~/scratch/service-account-file.json"

On Windows, set the environmental variable GOOGLE_APPLICATION_CREDENTIALS to the path to which you downloaded the preceding private key JSON file using a PowerShell command prompt: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content