Skip to content
Advertisement

Tag: google-cloud-functions

Cannot add private python dependency to cloud function

I am trying to deploy a python cloud function on GCP, using a python package pushed on the artifact registry of another project. I followed the instructions off the google cloud documentation: The service account that deploys the cloudbuild has the role: Artifact Registry Reader The error in cloudbuild: the requirements.txt the setup.py of the package the cloudbuild.yaml that deploys

Google PubSub – Ack a message using ack_id

I have an architecture made of: PubSub Topic ‘A’ Subscription ‘B’ on topic ‘A’ that pushes messages to the endpoint ‘X’ Cloud Function ‘C’ triggered by the endpoint ‘X’, runtime in Python Everytime a new message is published on the topic ‘A’, the subscription ‘B’ pushes it to the endpoint ‘X’ that triggers the Cloud Function ‘C’. The problem I’m

Callable Cloud Function error: Response is missing data field, when trying to call cloud function written in python from flutter app

I’ve been stuck for a few days trying to call a cloud function that was written in Python that takes no parameters from my flutter app, but I keep getting an error that says ‘Response is missing data field’. This is confusing me because the function takes no parameters so I’m wondering if I’m missing something. This is what the

How to combine multiple files in GCS bucket with Cloud Function trigger

I have 3 files per date per name in this format: ‘nameXX_date’, here’s an example: ‘nameXX_01-01-20’ ‘nameXY_01-01-20’ ‘nameXZ_01-01-20’ where ‘name’ can be anything, and the date is whatever day the file was uploaded (almost every day). I need to write a cloud function that triggers whenever a new file lands in the bucket, that combines the 3 XX,XY,XZ files into

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 is so that I can access BigQuery in the corresponding environment. Of course I could just hardcode the project_id, but I would like to do this programmatically. According

Advertisement