Skip to content

Generates a Google credential file based on an environment variable

License

Notifications You must be signed in to change notification settings

elishaterada/heroku-google-application-credentials-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

heroku-google-application-credentials-buildpack

Generates a Google credential file based on Heroku Config Vars.

This is useful when using a package such as @google-cloud/storage which loads credentials from a file instead of an environmental variable.

Usage

  1. Create Config Vars key GOOGLE_CREDENTIALS and paste the content of service account credential JSON file as is.
  2. Create a key under Config Vars GOOGLE_APPLICATION_CREDENTIALS and set a value as google-credentials.json.

The script with generate a file called google-credentials.json which holds the key from the step #1 above.

About

Generates a Google credential file based on an environment variable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages