Questions tagged [gcloud-cli]

gcloud is the command line utility for Google Cloud Platform.

gcloud is the command line utility for Google Cloud Platform. Documentation at https://cloud.google.com/sdk/gcloud

64 questions
1
vote
0 answers

How can I make sure that Cloud Run waits for my Spring Boot application to start before denying the health check?

I am deploying my Spring Boot application as a compiled jar file running in a docker container deployed to gcp, and deploys it through gcloud cli in my pipeline: gcloud beta run deploy $SERVICE_NAME --image $IMAGE_NAME --region europe-north1…
1
vote
1 answer

"Could not load default credentials" google cloud secrets manager - use CLI authorized user

I would like to have my nodeJS application authenticate itself locally with my IAM credentials, however when I run the basic secrets manager function below: // config/secret_manager.js const { SecretManagerServiceClient } =…
1
vote
1 answer

How to set up gcloud to use credentials from identity federation with OIDC

On this page, it is explained how to set up workload identity federation and how to use it with the (Python) client libraries. This is done by setting the GOOGLE_APPLICATION_CREDENTIALS environment variable. However, this does not work for the…
Ruwan
  • 33
  • 5
1
vote
1 answer

In glcoud cli is there a way to list Instance created in last one hour?

I am looking for a gcloud CLI command to retrieve all the instance created in the last one hour gcloud compute instances list
Eva
  • 515
  • 4
  • 28
1
vote
1 answer

gcloud cli filter format and limit behaviour

I experience a very strange behaviour with the --filter --formatand --limit flags. I have the following command: gcloud run revisions list --sort-by=~creationTimestamp --service "api-gateway" --platform managed --format="value(metadata.name)"…
Sebastian Thees
  • 3,113
  • 4
  • 14
  • 23
1
vote
1 answer

gcloud multiple terminals with different configuration active

I work with different environments Staging and production. Typically I need to do things at same time in both environments. Each environment is a gcloud configuration. So I'm always jumping between configurations. I would like to have different…
1
vote
1 answer

How to pass data from file when calling gcloud function from CLI?

I would like to pass data to my cloud function from a local JSON file by using the command gcloud functions call . I can successfully pass data following the official docs but I would like to know if there's a way to do such a…
mushipups
  • 25
  • 4
1
vote
1 answer

Setting composer (airflow) bucket using gcloud CLI

I've been creating a composer environment using the console interface, and then setting three variables using the cli (using examples from the QuickStart doc): gcloud composer environments run etl --location europe-west1 variables -- --set…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
1
vote
2 answers

GCR using CLI to retrieve tagless images

I know you can do the following to retrieve a list of tags of a specific image: gcloud container images list --repository=gcr.io/myproject But I was wondering whether I can also use the gcloud CLI to retrieve the images without a tag. The tag-less…
TheWolfNL
  • 1,263
  • 1
  • 13
  • 29
1
vote
2 answers

Unable to initialize gcloud environment

I have google cloud sdk installed on my ubuntu 14.4system but whenever I type gcloud init in my console, I get the following error:- rbenv: gcloud: command not found Further if I run gcloud init with sudo the error changes to:- /usr/bin/env:…
1
vote
0 answers

Google Cloud SDK: gcloud compute config-ssh crash

Running 'gcloud compute config-ssh' on a compute engine VM, I get the following error: ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xe2 in position 1438: ordinal not in range(128) My username & config directory do not…
0
votes
1 answer

How can I get gcloud auth to open the windows browser via WSL?

When trying to authenticate with google cloud CLI, you are prompted to the OAuth2 flow that asks you to login with your google account and approve. gcloud auth application-default login However, this does not work via WSL on windows. It seems that…
user1708860
  • 1,683
  • 13
  • 32
0
votes
1 answer

Why is GCloud CLI command failing with "Project ID not found."

This error ERROR: (gcloud.compute.ssh) Users instance [sXXXXXXX@sty-holdings.com] not found: Project ID not found. and its sometimes reports the error this way: ERROR: (gcloud.compute.ssh) HttpError accessing…
S. Yacko
  • 386
  • 4
  • 14
0
votes
1 answer

Lack of info about a new flag (--no-enable-managed-prometheus) for disabling a default enabled Prometheus

As you can see in the attached picture, we received an email from [tag:The Google Kubernetes Engine Team] that there will be a new flag for disabling default Prometheus in cluster after March 15, 2023, all newly created Google Kubernetes Engine…
0
votes
0 answers

Google cloud compute VM startup script got interrupted and does not finish

I followed this guide in order to create self deleting virtual machine after 60 seconds with the following script calling it from a python script. Bellow you can find the startup script: #!/bin/bash echo Start the startup script sleep 60s echo…