All Questions
85 questions
-1
votes
1
answer
104
views
PERMISSION_DENIED Error When Creating a Queue with Google Cloud Tasks
I'm developing a Node.js application and trying to create a queue using Google Cloud Tasks, but I encounter the following error:
Error: 7 PERMISSION_DENIED: The principal (user or service account) ...
1
vote
1
answer
612
views
How to get the access token of the service account running a google cloud function?
I have a google cloud function that is sending a PATCH request to the GCP app engine admin API to modify a service. I have a assigned a service account to the cloud function that has the required IAM ...
0
votes
3
answers
207
views
shutting down GCP basic scaled app engine every day at a certain time
my company has a small B1 basic scaled node js server on app engine, the server is used to log employee clock ins and outs everyday.
My firm recently upgraded to a newer fingerprint timesheet scanner, ...
2
votes
2
answers
244
views
Schedule App Engine instance startup behind Cloud Armor policies and Firewall rules
Context
I have an App Engine service (standard environment) sitting behind a load balancer. The load balancer is accessed via a static IP address reserved by Google and the ingress settings of the App ...
0
votes
1
answer
592
views
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build XXX status: FAILURE
I am trying to deploy my application howvever i recieve this error:
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build ce067810-d3ad-4ebe-b8ba-b9fa03e371a4 status: FAILURE
npm ERR! code ...
0
votes
1
answer
818
views
Deploying a python bot script on Google Cloud Run (GCR)
I have been racking my brains on this for a few weeks now, trying different variations from Google Cloud service offerings but can't seem to find the proper one.
I have a python script with ...
0
votes
2
answers
1k
views
Google Cloud Secrets Manager denies access to App Engine application but works with Google Cloud Function
I'm trying to connect to get a secret from google's secrets manager, and the same code works for Cloud Functions, but not for App Engine.
const { SecretManagerServiceClient } = require('@google-cloud/...
3
votes
3
answers
3k
views
Best way for running long Python scripts on GCP
We are starting a new project in our company where we basically run few Python scripts for each client, twice a day.
So the idea is, twice a day a Cloud Function will be triggered where the function ...
8
votes
3
answers
2k
views
Unable to create a new Cloud Function - cloud-client-api-gae
I'm unable to create a Cloud Function in my GCP project using GUI, but have admin roles for GCF, SA and IAM.
Here is the error message:
Missing necessary permission iam.serviceAccounts.actAs for
...
0
votes
1
answer
173
views
Can a Google App Engine Instance create a Request to itself?
I'm using cloud task for async processing of App Engine requests:
<app-engine-instance>/request -> <task_queue>/longrunning_task
I realised that I'm duplicating a lot of code like ...
0
votes
0
answers
256
views
Breakdown Google Billing by could function / app engine?
Is it possible to break down cloud billing by cloud function and app engine?
We have had a spike in cost for App Engine and also Cloud Functions.
The current breakdown just states Frontend Instances ...
1
vote
2
answers
813
views
Is there a way to automate this Python script in GCP?
I am a complete beginner in using GCP functions/products.
I have written the following code below, that takes a list of cities from a local folder, and call in weather data for each city in that list, ...
2
votes
1
answer
2k
views
How to deploy a Cron Job Node Js Script to Google Cloud?
I have a nodeJs script that is run by a Cron Job using the node-cron module
The purpose of this nodeJs script is to loop over items in my MongoDB and run some function.
Is it possible to deploy this ...
0
votes
1
answer
743
views
Requests from Cloud Function to App Engine returns error 401
I am trying to send requests to several App Engine endpoints deployed on the default GAE service from a Cloud Function. My code is quite simple:
Cloud Function
main.py
import logging
import requests
...
0
votes
2
answers
766
views
Google Cloud Platform: Cloud Functions vs App Engine
This may be the wrong place for this question, so please re-direct me if necessary.
I have deployed a couple simple functions using Google Cloud Functions that do the following:
Read files from AWS ...