Questions tagged [gcloud]

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks.

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks. Cloud SDK also contains tools and libraries to create and manage App Engine, Compute Engine, Cloud Storage, Cloud SQL, and BigQuery resources.

Useful links

Google Cloud SDK - Home page Google Cloud SDK - Discussions Forum gcloud - Tool Guide gcloud - Support channel at freenode IRC network

4396 questions
1
vote
1 answer

What is --image-project argument of gcloud compute instances create command?

Please help understand what is --image-project argument of the gcloud compute instances create command. Following Architecting with Google Kubernetes Engine in Coursera. There is an instruction to create a VM as below. It looks to me there is a…
1
vote
2 answers

formating gcloud spanner queries

Up until recently my gcloud spanner queries where nicely presented as columns across the screen, with each output line representing a single row from the query. Recently however, for some unknown reason, the output is now displayed as row data…
RPayne
  • 75
  • 6
1
vote
2 answers

What are access scopes in gcloud auth, and why do they differ in Cloud Shell vs. my local machine?

I'm seeing a permissions bug when using docker push as described in the Google Artifact Registry Quickstart. As noted in that question, the problem seems to come down to missing scopes on the access token. In my local shell, the scopes are these (as…
1
vote
2 answers

'gcloud alpha iap oauth-brands create' getting INVALID PARAMETER

For some reason I deleted so called brand entity at my gcloud console. Now I want to create new one using the command in the console: gcloud alpha iap oauth-brands create --application_title='EmojiRave' --support_email='rebelusgames@gmail.com' But…
1
vote
0 answers

Trouble with gcloud installation on Mac

Note: I am new to MacOS and its command line. I have multiple python installations.But the main one is through the Anaconda distribution. I have never faced issues with it. If I activate conda base environment, my python lies in…
1
vote
4 answers

Gcloud and docker confusion

I am very lost on the steps with gcloud verse docker. I have some gradle code that built a docker image and I see it in images like so (base) Deans-MacBook-Pro:stockstuff-all dean$ docker images REPOSITORY TAG IMAGE ID…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
1
vote
1 answer

How can I call add-iam-policy-binding with Python?

I am struggling to follow the docs (https://googleapis.dev/python/iam/latest/index.html) for the GCP Python IAM Client. How can I invoke gcloud iam service-accounts add-iam-policy-binding with this library (i.e. without shell'ing out)?
routeburn
  • 1,156
  • 1
  • 12
  • 27
1
vote
1 answer

GRPC CallError : InvalidFlags while publishing Google pub sub Topic. .net 4.5.2

I have a web app that publishes messages to a Topic for certain user activities. I am getting the below error every time I try to publish message to the topic in a compute engine instance. PublisherClient publisher = PublisherClient.CreateAsync(new…
abhinayr
  • 221
  • 1
  • 2
  • 8
1
vote
1 answer

Catch "HTTPError 404" in python for gcloud commands

Trying to catch this error: ERROR: (gcloud.compute.instances.add-labels) HTTPError 404: The resource 'projects/matei-testing-4010-5cbdeeff/zones/us-east1-b/instances/all' was not found Tried different versions of code and none worked for me. My…
happymatei
  • 113
  • 1
  • 12
1
vote
1 answer

Gcloud Run - Find latest revision's name

I'm trying to find the name of the latest revision of a gcloud run service, so that I can change its assigned traffic when running a Jenkins pipeline. I've tried the gcloud run revisions list with the --limit, --sort-by, --format flags, but I'm not…
Luis Costa
  • 330
  • 1
  • 14
1
vote
1 answer

Can gcloud be used to change the instance group a LB is pointing to?

I'm trying to automate a process I'm currently doing manually. I have an TCP load balancer, and I need to change the instance group it's directing the traffic to. When doing it manually, it's pretty simple and straight forward, I just edit the LB…
SimpleNiko
  • 159
  • 9
1
vote
1 answer

Google cloud (firebase) callable function 401: "unauthorized" error when called by http

I have simple test callable function deployed via firebase deploy --only functions. Here it's content: export const test = region('europe-west1').https.onCall((data, context) => { logger.debug('test call info', data, context); return 'hello,…
1
vote
1 answer

Deploying to GCloud VM Instances with GitHub Actions

I have a VM instance on GCloud that manages both dev/prod. Currently, I manage deploying by just SSH'ing into the instance, cd'ing into dev/prod, and manually checking out or pulling the new changes. Trying to automate this process, I can't find any…
1
vote
1 answer

how to upload a tflite file to firebase test lab device via gcloud?

It is known that additional files can be uploaded via the other files flag in gcloud. I am trying to use the firebase test lab performance application to check the performance of a network. The command i run is: gcloud firebase test android run…
David Michael Gang
  • 7,107
  • 8
  • 53
  • 98
1
vote
1 answer

gcloud sdk in mac terminal - backspace does not work

Mac 10.14.6 iTerm2 Build 3.4.8 Google Cloud SDK 351.0.0 beta 2021.07.30 bq 2.0.70 core 2021.07.30 gsutil 4.66 Logging in to my virtual gcloud server without errors with: gcloud compute ssh myserver However, the backspace key in the terminal…
user3156459
  • 1,123
  • 2
  • 9
  • 17