google-cloud-platform

you do not have permission to create projects in this location

别等时光非礼了梦想. 提交于 2021-01-29 20:58:36
问题 SOLVED: In Google cloud platform I need to create a new project to create a new oauth credential for an app. But it will not let me create any more projects under my organisation. It says I do not have permission to create projects in this location. I only have 2 projects currently and there is only 1 org. No I cannot use an exisitng project since I need to setup a different oauth consent screen. I am the admin, with owner permissions, so there is nobody else I can contact. I have a g suite

Cloud AI Platform Training Fails to Read from Bucket

自闭症网瘾萝莉.ら 提交于 2021-01-29 20:22:14
问题 I'm trying to use Cloud AI Platform for training (gcloud ai-platform jobs submit training). I created my bucket and am sure the training file is there (gsutil ls gs://sat3_0_bucket/data/train_input.csv). However, my job is failing with log messsage: File "/root/.local/lib/python3.7/site-packages/ktrain/text/data.py", line 175, in texts_from_csv with open(train_filepath, 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: 'gs://sat3_0_bucket/data/train_input.csv' Am I missing

Cloud Composer + Airflow: Setting up DAWs to trigger on HTTP (or should I use Cloud Functions?)

时间秒杀一切 提交于 2021-01-29 19:02:36
问题 Ultimately, what I want to do is have a Python script that runs whenever a HTTP request is created, dynamically. It'd be like: App 1 runs and sends out a webhook, Python script catches the webhook immediately and does whatever it does. I saw that you could do this in GCP with Composer and Airflow. But I'm having several issues following these instrutions https://cloud.google.com/composer/docs/how-to/using/triggering-with-gcf: Running this in Cloud Shell to grant blob signing permissions:

Need to obtain shopping cart sum after series of getDocument price lookups

被刻印的时光 ゝ 提交于 2021-01-29 18:45:25
问题 I'm trying to get the total of a shopping cart in Firestore by executing a series of for loop calls that calculate the sum of items in the shopping cart. The shopping cart is stored in a table called carts and the view upon appearing is pulled into an in-application dictionary called cartCache, of the type [String: Int]? where the key is the UID for the item and the value is the quantity of the item. However, the price of the item is stored in another collection called items . I only want to

How to scale Google App Engine instances down to 0 when there is no traffic?

最后都变了- 提交于 2021-01-29 18:26:27
问题 I am hosting an app on GAE and want to enable auto-scaling down to 0 instances when there is no traffic. I thought that specifying min_instances: 0 would allow that to happen. I also included the warmup process recommended in the docs. I sent a single request to the app in the morning and didn't touch it again but it still racked up 10+ instance hours. Can anyone tell me how to enable scale-down to 0 instance on the standard environment? I'll also note that I''m using a few other GCP services

Google Cloud Dataflow - From PubSub to Parquet

房东的猫 提交于 2021-01-29 17:46:17
问题 I'm trying to write Google PubSub messages to Google Cloud Storage using Google Cloud Dataflow. The PubSub messages come into json format and the only operation that I want to perform is a transformation from json to parquet file. In the official documentation I found a template provided by google that reads data from a Pub/Sub topic and writes Avro files into the specified Cloud Storage bucket (https://cloud.google.com/dataflow/docs/guides/templates/provided-streaming#pubsub-to-cloud-storage

Push startup-script logs to a separate file in gcp

こ雲淡風輕ζ 提交于 2021-01-29 17:45:51
问题 In GCP, For ubuntu - startup-script logs automatically pushed to /var/log/Syslog we might miss those logs due to log rotation if required after a long duration. Is there a way to redirect these logs to some another log-file? My startup-script is a simple bash script with multiple commands and can't redirect the output of individual command to a file. 回答1: You can consider this solution: redirect outputs inside your startup-script to a dedicated startup-script.log file in /tmp directory

Terraform google_container_cluster adjust maximum retry budget

孤者浪人 提交于 2021-01-29 17:30:59
问题 I keep getting "Retry budget exhausted (80 attempts)", which takes about 10 minutes. Is there a way to reduce the maximum retry budget so I can iterate my configurations faster? Using https://registry.terraform.io/modules/terraform-google-modules/kubernetes-engine/google/7.3.0 回答1: Unfortunately maximum retry budget is not adjustable at the moment. You can take a look at the closely related issue registered on Google's issue tracker . If you're interested in this functionality I would

Google Calendar api authentication via POST request

牧云@^-^@ 提交于 2021-01-29 16:52:47
问题 I am trying to issue a POST request towards the google calendar api, but I fail to understand how to authenticate it. I took the following steps to try and use a service account to do so: I've enabled the the calendar api in the Google Cloud console I've created a new service account, enabled G Suite Domain-wide Delegation , and downloaded the provided key. I've added the service account email to the calendar to be able to make changes and create events. I've tried to create a POST request to

Google Cloud Run - Run Shell Script in firebase project

痴心易碎 提交于 2021-01-29 16:28:51
问题 I'm new to google cloud-run and I'm hoping to achieve to run scripts in the firebase project to update configs (env variables) here's the process firebase function invoked-> pass param(bar, baz) into cloud run -> run scripts firebase functions:config:set foo.bar=baz What I have done is to crate an image of firebase-tools shared by cloud-builders-community, and below is the code // cloudbuild.yaml steps: - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/firebase'