Questions tagged [google-cloud-functions]

14 questions
4
votes
1 answer

jsonPayload (structured logging) output from Python Google Cloud Function's logging needed to create Log-Based Metrics (LBM) in GCP

I need the jsonPayload in the logs of a Google Cloud Function instead of the textPayload. My aim is to use the keys of the dictionary as labels (see Log-based metrics labels) for Log-Based Metrics so that these can be addressed in Grafana. I am…
3
votes
1 answer

Why suddenly much higher costs in Google Cloud Functions (Cloud Scheduler)?

I usually had to pay $0.10 per function, which made about a few cents a month. Now it costs a few dollars and seems to come from non-firebase services, which I dont understand. Image of Cost Increase I have 2 projects. One of them I didnt even touch…
2
votes
2 answers

Why is my Google Cloud Function timing out when making a HTTP request to my AWS Fargate instance?

I am working on a Google cloud function for beforeSignIn trigger which needs to fetch some data from a microservice hosted on a AWS Fargate instance. The request times out but only in the Google cloud function environment with this one particular…
alsuvo
  • 31
  • 2
1
vote
1 answer

DNS resolving from Cloudfunctions in VPC network

I am deploying a Cloudfunction with VPC network as follows: gcloud beta functions deploy my-function --trigger-http --region europe-west1 --memory 128MB --runtime nodejs16 --entry-point entrypoint …
1
vote
1 answer

When writing csv from CF to bucket: 'with open(filepath, "w") as MY_CSV:' leads to "FileNotFoundError: [Errno 2] No such file or directory:"

I get this error FileNotFoundError: [Errno 2] No such file or directory when I try to write a csv file to the bucket, using a csv writer that loops over batches of data. The full insight into the Cloud Function logs around that error: File…
0
votes
1 answer

Google Firebase Cloud Functions: Error: Your project is being set up. Please wait a minute before deploying again

I have a Google Cloud / Firebase project, let's call it A, to which I can normally deploy Cloud Functions via the firebase deploy command. Recently I've had to set up a parallel project that is supposed to run the same functions, just with a…
0
votes
0 answers

Error handling in Cloud functions - Cloud Logging

I have a series of cloud functions and I want to get an alert when errors occur in them. I already have the alert set and it works. I decided to use the Cloud Logging logs: functions.logger.error(Error ${error.message}); But for example when my…
0
votes
0 answers

Write override-config.yml to reverse proxy domain path to cloud service with nginx-proxy-automation?

I am using https://github.com/evertramos/nginx-proxy-automation/ and it has as a component https://github.com/nginx-proxy/docker-gen. I would like to proxy a location on my host https://someurl.com/consumer -> …
0
votes
1 answer

Connect to Cloud SQL from Google Cloud Functions

I have a few already deployed and running functions that use a custom VPC connector (projects/dc-****/locations/us-east1/connectors/serverless-vpc-dev-use), then I created a Cloud SQL from scratch with only the public IP. I've been able to connect…
0
votes
1 answer

compute.instances.list privilege required for Cloud Functions

I am following https://cloud.google.com/scheduler/docs/start-and-stop-compute-engine-instances-on-a-schedule. When testing the Cloud Function, I get the error message: Error: Required 'compute.instances.list' permission for…
0
votes
1 answer

Google Cloud Function warning "OpenBLAS WARNING - could not determine the L2 cache size on this system"

I get the warning OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k in the logs of the "LOGS" tab of the Cloud Function. There is already a Q/A on this on Stack Overflow at AppEngine warning - OpenBLAS WARNING…
0
votes
1 answer

Reading only the metadata of a file in a Google Cloud Storage bucket into a Cloud Function in Python (without loading the file or its data!)

I need something like Cloud Storage for Firebase: download metadata of all files, just not in Angular but in Python and just for a chosen file instead. The aim is to return this information when the Cloud Function finishes with the return statement…
0
votes
0 answers

Google cloud functions contains whole application code unlike aws lambda which contains only function specific code

I was using aws lambda for few projects. In lambda i can package only function specific code so every function has only its own code. and now i am using google cloud functions for my new project. I've deployed few functions but all the functions…
0
votes
2 answers

Org Policies error when creating a Cloud Function

When trying to create a "hello world" Cloud Function, I get the error message: "The request has violated one or more Org Policies. Please refer to the respective violations for more information." Now, which org policies have been violated? In the…