Questions tagged [google-cloud-shell]

Google Cloud Shell is a shell environment for managing resources hosted on Google Cloud Platform.

Google Cloud Shell is a shell environment for managing resources hosted on Google Cloud Platform. See documentation for more details.

390 questions
38
votes
3 answers

Is it possible to use the Google Cloud Shell via a ssh?

Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell. Answer: yes it is now been possible:…
36
votes
3 answers

How do I get "firebase login" to work from Google Cloud Shell

I logged into Google Cloud Shell and found that that the Firebase CLI is already installed. I then tried to run "firebase list" to see that it was working and was prompted to login. "Visit this URL on any device to log in:" I…
Art
  • 1,519
  • 2
  • 13
  • 21
20
votes
5 answers

How do I install Python in Google Cloud Shell?

I have python 3.5 on my google cloud shell and want 3.7 so I can do command line debugging of code I am going to deploy via google cloud functions (and use 3.7 features such as f-strings). I have tried various forms of the following: sudo apt-get…
Richard
  • 229
  • 1
  • 2
  • 5
17
votes
4 answers

How to download an entire bucket in GCP?

I have a problem downloading entire folder in GCP. How should I download the whole bucket? I run this code in GCP Shell Environment: gsutil -m cp -R gs://my-uniquename-bucket ./C:\Users\Myname\Desktop\Bucket and I get an error message:…
Justas
  • 171
  • 1
  • 1
  • 3
17
votes
2 answers

GCP open firewall only to cloud shell

Is there a way in GCP to explicitly allow firewall rule only from cloud shell. All the GCP demos and videos add the rule allow 22 to 0.0.0.0/0 to ssh to the instance from cloud shell. However is there a way we could restrict the access only from…
10
votes
3 answers

Google Cloud Shell won't start; throws usage limits exceeded msg

This is a Google Cloud Storage service related question; specifically about Google Cloud Shell and inability to start it. It worked fine for the past week. But today, about 3 hours earlier onward, when I…
9
votes
3 answers

Google Cloud Shell Editor not loading resources

I've experienced that Google Cloud Shell Editor doesn't load, it keeps on loading resources forever. I've tried to restart my instance multiple times. I've changed projects, trying the boost feature, I've even reset my home directory, but nothing…
robertsahlin
  • 511
  • 1
  • 4
  • 12
8
votes
1 answer

Copy selected text from VI in google cloud shell

Trying to copy selected text from a file opened in VI on google cloud shell and paste it in another shell tab. If I select the text in visual mode it wouldn't work. On a local terminal I would use xclip, or shift(+ctrl) before selecting. Is there a…
abreschi
  • 581
  • 6
  • 10
8
votes
3 answers

How to get gsutil to use gcloud credentials in a docker container

Why doesn't gsutil use the Gcloud credentials as it should when running in a docker container on Cloud Shell? According to [1] gsutil should use gcloud credentials when they are available: Once credentials have been configured via gcloud auth,…
7
votes
2 answers

How to type special symbol on Cloud Shell with Mac EU keyboard?

Considering this context: MacBook European Keyboard (or non US keyboard) Google Cloud Shell (on Google Cloud Console) How to type special symbols like | (pipe), \(backslash) ? Normally, on MacOS, we can use ALT + SHIFT + L for | (pipe), and ALT +…
7
votes
2 answers

How to connect to Cloud SQL from Cloud Shell?

I'd like to use the Cloud Shell to run database migrations on my 2nd gen Cloud Sql instance. I found an example in the docs for how to connect using gcloud. But when I run the command Im getting an error: $ gcloud beta sql connect my-instance…
sthomps
  • 4,480
  • 7
  • 35
  • 54
6
votes
2 answers

Using Cloud Shell to Access a Private Kubernetes Cluster in GCP

The following link https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters talks about the setting up of a private GKE cluster in a separate custom VPC. The Terraform code that creates the cluster and VPCs are available from…
6
votes
2 answers

ERROR: (gcloud.services.enable) User does not have permission to access project (or it may not exist): The caller does not have permission

I'm looking to put together a script that I can run from Cloud Shell to enable an API in all projects. It is successfully going through each project, but I am getting a permission denied message for every one. I am the owner so there shouldn't be…
Lucas
  • 65
  • 1
  • 1
  • 6
6
votes
1 answer

Google Cloud Shell is temporarily unavailable

I am new to google app engine. Recently I have been using the google cloud console to develop my own blog for a while. However, since last Sunday, I cannot connect to the google cloud shell. Whenever I try to connect to the cloud shell, an error…
Kai
  • 63
  • 2
  • 4
5
votes
1 answer

ERROR: (gcloud.builds.submit) Error 403: does not have storage.objects.get access to the Google Cloud Storage object

I am trying to build a docker image from the Pub/Sub tutorial on Google (link here). I am running this command: gcloud builds submit --tag gcr.io/project_id/pubsub but for some reason I get the error mentioned in the title: ERROR:…
1
2 3
25 26