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
2 answers

How to deploy a simple app to GCP with minimal costs (or how to disable autoscaling after deploy)?

In my first attempt at using Cloud to deploy an app... The problem: GCP (Google Cloud Platform) unexpected instance hour usage (Frontend Instance Hours). High traffic was not the issue but for some reason a bunch of "instances" and "versions" were…
1
vote
0 answers

Why do i get a "Post request fails. Cannot get predictions" error when calling gcloud AIP (unified) batch prediction?

calling a batch prediction for a model deployed on AIP unified results in an empty results file and a single error file with the following content: ('Post request fails. Cannot get predictions. Error: Unexpected response-…
Tsvi Sabo
  • 575
  • 2
  • 11
1
vote
2 answers

"""CommandException: No URLs matched. Do the files you're operating on exist? """ error while running gsutil -m rm -r -I command

I have many folders stored in gcs bucket and i want to delete those folders recursively. gsutil -m ls -d gs://bucket_name/folder_1/*/ | grep 2021-03-17 | gsutil -m rm -r So basically i want to delete all the folders recursively whose names contain…
1
vote
1 answer

How can i authenticate to the bucket using hmac keys via command line

Need to move from use of minio client to a docker image having gcloud/gsutil and mysql images. What i have currently: /tmp/mc alias set gcs1 https://storage.googleapis.com $ACCESS_KEY $SECRET_KEY mysqldump --skip-lock-tables --triggers --routines…
1
vote
1 answer

Why Gcloud Pub/Sub is used?

Why Pub/Sub is used? Usecase: There is a http triggered "Cloud function" on which some Data is sent. This function after processing data, publishes Data to a Pub/Sub topic. Then there is another Cloud function, which is triggered based on publishing…
1
vote
1 answer

How to suppress gcloud connection closed warning when executed from python

def instance_list(): instances_list = "gcloud compute instances list --format='json(name, status, zone)' --filter='(status=running)' --project reference-ether-853" instance_output_json =…
1
vote
1 answer

GCloud powershell commands throw error but works fine in cmd

When I run GCloud comannds via windows cmd prompt it works. But when I run them via powershell it throws an error in red, but the command gets completed successfully. Eg: 1) Auth gcloud auth activate-service-account…
Nigel Fds
  • 803
  • 2
  • 12
  • 29
1
vote
0 answers

How to set Default GCP resource location programmatically using fiebase cli or any other way

I need to deploy firebase cloud functions programmatically What I am doing. I have firebase cli install on ubuntu and have written bash script. I create a firebase project then initialize my database and firebase functions. I attach billing account…
1
vote
1 answer

Can I export just one document from within a firestore collection?

With gcloud, it's very straightforward to export all documents within a firestore project, or specific collections within a project. (See here for more). However, I'm trying to export solely one document from within a collection. Is that at all…
thisissami
  • 15,445
  • 16
  • 47
  • 74
1
vote
1 answer

Deployment issue after setting GOOGLE_APPLICATION_CREDENTIALS=[PATH]

My app engine application deployed fine before setting this variable. Now when I deploy the application the build is looking for this local file. Can i set this as a relative path or can I remove this variable and use new logger({ projectId,…
almcaffee
  • 112
  • 8
1
vote
2 answers

Uneable to link Pycharm docker container with already existing container

I've created a Docker Image in order to be able to run a Docker Container with some services like gcloud datastore. If I run my application using my local packages I can connect to that container without any problem and access to the…
anmarlea
  • 370
  • 1
  • 3
  • 11
1
vote
1 answer

Is there any way to set the max schedule time for Google Cloud Tasks to more than 720 hours?

We are using Google Cloud Tasks to manage timing a messaging queue in Firebase Functions, and need to schedule some follow up messages more than a month out. We are getting this error: 3 INVALID_ARGUMENT: The Task.scheduleTime,…
ForrestLyman
  • 1,544
  • 2
  • 17
  • 24
1
vote
1 answer

gcloud.builds.submit throws unrecognized arguments while passing env

I'm about to lose my mind. I'm reading the doc: https://cloud.google.com/sdk/gcloud/reference/builds/submit?hl=it#--pack And here it says that use --pack=[builder=BUILDER],[env=ENV],[image=IMAGE] To pass environment variables to the builder use the…
kuzua
  • 177
  • 2
  • 9
1
vote
0 answers

Set traffic for Google App Engine using migrate option

We are on App Engine Standard running Python 3. Always used the following command in App Engine to migrate traffic after tests are passed. gcloud app versions migrate $VERSION --service=“default” Today around 11 am EET it stopped working. It waits…
1
vote
1 answer

How to use relative dependencies when deploying to App Engine with Cloud Build

I have a full stack project that have some common modules, mostly type definitions. I want to keep them in the same repository to keep a consistent state of my application. However, the deploying doesn't work as I expect it. During my first two…
1 2 3
99
100