-
Create a Google Cloud account with your existing gmail account (follow the steps to create one if you don't already have)
-
Create a Google Cloud project and note the Project ID
-
Set up project authentication and service account for access with client libraries
-
Enable the following APIs
-
Create service account and Service account key with the following specs. Learn more about service acounts here
- Grant the following roles.
- Storage Admin
- Storage Object Admin
- BigQuery Admin
- Download service-account-keys (.json) and save in the gcp folder (
~/musicaly-project/gcp/
) in the project directory. (DO NOT share this key file publicly!) - Rename the json key file to
google_credentials.json
- Grant the following roles.
-
-
Set environment variable to point to your downloaded json key file. Replace
<path_to_your_google_credentials>
below with the path to file and run in terminal.export GOOGLE_APPLICATION_CREDENTIALS="<path_to_your_google_credentials>"
Note that this does not set the variable permanently. To permanently set it, append the command to the
.bashrc
or.profile
file found in the home directory.