Cloud Build service account no access to storage.objects.get

I am trying to get a Google Cloud Functions to print something from a file in a storage bucket. I have the file stored in a bucket, an authenticated service account with Storage Admin, Cloud Run Admin,…

TypeError: ‘NoneType’ object is not subscriptable on GAE instance assigning JSON to python variable

I’m getting an error TypeError: ‘NoneType’ object is not subscriptable when assigning JSON to a python variable like this sheet_id = data[“sheetID”]. It only happens on my Google App Engine …

Can’t iterate over files within a folder in google cloud notebooks instance

I am using the notebooks instance within the AI platform in google cloud console. I have uploaded a folder inside which contains around 30 csv files. I run the following code to iterate over the files,…

Write to Google Cloud storage bucket as if it were a directory?

I’ve written a python script that resamples and renames a ton of audio data and moves it to a new location on disk. I’d like to use this script to move the data I’m resampling to a google storage bucket. Question: Is there a way to connect/mount your GCP VM instance to a bucket in such a way that reading and writing can be done as if the bucket is just another directory? For example, this is somewhere in my script: I’d like to have a way to get the path to my bucket because my script takes an old_path

Get environment variables in a cloud function

I have a Cloud Function in GCP that queries BigQuery in a specific project/environment. As I have multiple environments I would like to get the current project/environment of the cloud function. This …

Calling Firestore Database from another Cloud Project shows “Permission Error”

After reading every piece of question, documentation available online, we couldn’t find a solution, so posting a question here. Our Setup : Project FB: Used only for Firestore in Dev mode. We want to access data from this project in our dev backend server, hosted on a different cloud project. Project GCP: A GCP Project with app deployed in GAE that makes a simple get() call to Project FB’s document. The app is in Python, and it works perfectly in localhost, but not after it’s deployed. Sample Flask code that we are testing with: Note: This is not a question