gcloud

Getting error while generating crypto keys using GCloud KMS to access private repo as dependency

。_饼干妹妹 提交于 2020-05-29 05:01:14
问题 I'm trying to add encrypted ssh keys to google KMS using this documentation for accessing private repository as a dependency on Google App Engine (Node.JS project). I have successfully generated Cloud KMS KeyRing and CryptoKey but I'm facing an error while encrypting the key. (gcloud.kms.encrypt) PERMISSION_DENIED: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied for resource 'projects/test/locations/global/keyRings/my-keyring/cryptoKeys/key'. Need some help to setup this so can I

How can I save google cloud build step text output to file

别来无恙 提交于 2020-05-23 08:11:07
问题 I'm trying to use google cloud build. At one step, I need to get a list of all running compute instances. - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list'] and it works fine. Problem starts when I tried to save the output to a file Trial 1 : failed - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list', '> gce-list.txt'] Trial 2 : failed - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list', '>', 'gce-list.txt'] Trial 3 :

CLOUD_SDK_CREDENTIALS_WARNING We recommend that most server applications use service accounts instead

拟墨画扇 提交于 2020-05-17 08:52:19
问题 Context: I have just learn a trick to get (download) data from FireStore Dashboard. Obviouslly, it is much easier just open Google Dashboard on Browser and see with my eyes to own Google Dasboard. Nevertheless, for personal reasons, in my company the operators can't look at a third Dashboard. They only can see internal Dashboards. I am trying some workaround where I can get/download the same data used for fill in Dashboard and imported it to our internal solution based on Dynatrace/ELK. For

how can I get my gcloud user creds into a container securely and use them to impersonate a service account when testing locally?

杀马特。学长 韩版系。学妹 提交于 2020-05-17 06:48:05
问题 Starting with this: users have their own google user accounts that are setup locally via gcloud login the application is using the gcp APIs in the usual way- by default it will look for GOOGLE_APPLICATION_CREDENTIALS, GCE roles, service accounts, or use the local users gcloud configured credentials when users run it locally it will use their own user account, when run in gcp it will use a service account The user's account also has access to impersonate the service account. So when running

How to Deploy Angular 7 Project to Google Cloud

吃可爱长大的小学妹 提交于 2020-05-16 13:36:14
问题 I have built an Angular 7 application that works nicely when I do the ng serve command from my local mac or from a remote centos server. This application is using php files that access MySQL data base both served on my google cloud. Now after doing the gcloud app deploy the last thing I see on the screen is the message: nebula@0.0.0 start /app ng serve sh: 1: ng: not found and I am dead in the water. I have tried so many different versions of app.yaml and cloudbuild.yaml file that I feel like

ERROR: (gcloud.app.deploy) Error Response: [3] The following errors occurred while copying files to App Engine

你离开我真会死。 提交于 2020-05-16 03:17:51
问题 Getting this error when I try to deploy to google app engine: ERROR: (gcloud.app.deploy) Error Response: [3] The following errors occurred while copying files to App Engine: File https://storage.googleapis.com/staging.XXXXXXXX.appspot.com/04314f892fba4e2f44a86ab96eeb2a6b72ed93cd failed with: Conflicting SHA1 sum for file. Expected "6ae2b40e_68bc1a25_8cc5408c_bbd37316_fa642477" but received "04314f89_2fba4e2f_44a86ab9_6eeb2a6b_72ed93cd". File https://storage.googleapis.com/staging.XXXXXXXX

'gcloud deploy' complains about having both a .gcloudignore and skip_files even though I have neither

感情迁移 提交于 2020-05-15 05:09:22
问题 I'm trying to deploy a Django (v2.1) app to App Engines Python37 runtime. This is my app.yaml which was taken from a Google example: # [START django_app] runtime: python37 #api_version: 1 #threadsafe: yes handlers: - url: /static static_dir: static/ - url: .* script: <project_name>.wsgi.application # Only pure Python libraries can be vendored # Python libraries that use C extensions can # only be included if they are part of the App Engine SDK # Using Third Party Libraries: https://cloud

Using gcloud speech api for real-time speech recognition in dart, flutter

↘锁芯ラ 提交于 2020-05-13 08:00:28
问题 I want to use Google's real-time speech recognition api in a flutter project, written in dart. I've activated a gcloud account, created the api key (which should be the only necessary authentication method for google speech) and written a basic apk which ought to send an audio stream to Google cloud and display the response. I imported the googleapis/speech and googleapis_auth plugin. But I couldn't figure out how to set it up. They say you have to use gRPC, which makes sense as it should

Using gcloud speech api for real-time speech recognition in dart, flutter

给你一囗甜甜゛ 提交于 2020-05-13 07:59:05
问题 I want to use Google's real-time speech recognition api in a flutter project, written in dart. I've activated a gcloud account, created the api key (which should be the only necessary authentication method for google speech) and written a basic apk which ought to send an audio stream to Google cloud and display the response. I imported the googleapis/speech and googleapis_auth plugin. But I couldn't figure out how to set it up. They say you have to use gRPC, which makes sense as it should

Why does Google Cloud show an error when using ClusterIP

浪子不回头ぞ 提交于 2020-05-10 06:58:31
问题 In my gcloud console it shows the following error for my defined ingresses: Error during sync: error while evaluating the ingress spec: service "monitoring/kube-prometheus" is type "ClusterIP", expected "NodePort" or "LoadBalancer" I am using traefik as reverse proxy (instead of nginx) and therefore I define an ingress using a ClusterIP. As far as I understand the process all traffic is proxied through the traefik service (which has a Loadbalancer ingress defined) and therefore all my other