google-cloud-shell

Enabling Google Cloud Shell “boost” mode via gcloud cli

此生再无相见时 提交于 2021-01-29 07:37:01
问题 I use the method mentioned in this excellent answer https://stackoverflow.com/a/49515502/10690958 to connect to Google Cloud Shell via ssh on my ubuntu workstation. Occasionally, I need to enable "boost-mode". In that case, I currently have to open the Cloud Shell via firefox (https://console.cloud.google.com/cloudshell/editor?shellonly=true), then login and enable boost mode. After that I can close firefox, and use the gcloud method to access the cloud shell VM in boost mode. I would like to

Enabling Google Cloud Shell “boost” mode via gcloud cli

淺唱寂寞╮ 提交于 2021-01-29 07:34:36
问题 I use the method mentioned in this excellent answer https://stackoverflow.com/a/49515502/10690958 to connect to Google Cloud Shell via ssh on my ubuntu workstation. Occasionally, I need to enable "boost-mode". In that case, I currently have to open the Cloud Shell via firefox (https://console.cloud.google.com/cloudshell/editor?shellonly=true), then login and enable boost mode. After that I can close firefox, and use the gcloud method to access the cloud shell VM in boost mode. I would like to

How get a metric sample from monitoring APIs

家住魔仙堡 提交于 2020-06-16 07:06:51
问题 I took a look very carefully to monitoring API. As far as I have read, it is possible to use gcloud for creating Monitoring Policies and edit the Policies ( Using Aleert API). Nevertheless, from one hand it seems gcloud is able only to create and edit policies options not for reading the result from such policies. From this page I read this options: Creating new policies Deleting existing policies Retrieving specific policies Retrieving all policies Modifying existing policies On another hand

Shared Access for Home Directory in google cloud Shell

纵饮孤独 提交于 2020-01-16 14:55:33
问题 I am currently using the Google Cloud Shell, and I wish to access the persistent disk of another user. (Not using local shell) More info on topic of inquiry: https://medium.com/google-cloud/no-localhost-no-problem-using-google-cloud-shell-as-my-full-time-development-environment-22d5a1942439 回答1: Cloud Shell is a micro vm dedicated to you, free, and with a mounted personal disk. EDITED : Thanks to @Johnhanley comment, you can access to the cloud shell file of someone else with this code

Shared Access for Home Directory in google cloud Shell

↘锁芯ラ 提交于 2020-01-16 14:55:17
问题 I am currently using the Google Cloud Shell, and I wish to access the persistent disk of another user. (Not using local shell) More info on topic of inquiry: https://medium.com/google-cloud/no-localhost-no-problem-using-google-cloud-shell-as-my-full-time-development-environment-22d5a1942439 回答1: Cloud Shell is a micro vm dedicated to you, free, and with a mounted personal disk. EDITED : Thanks to @Johnhanley comment, you can access to the cloud shell file of someone else with this code

GCP open firewall only to cloud shell

守給你的承諾、 提交于 2020-01-02 11:03:15
问题 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 cloud shell - either using cloud shell's IP range or service account ? 回答1: Google does not publish the public IP address range for Cloud Shell. VPC firewall rules allow specifying the service account of the source and target. However, Cloud Shell

GCP open firewall only to cloud shell

混江龙づ霸主 提交于 2020-01-02 11:02:46
问题 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 cloud shell - either using cloud shell's IP range or service account ? 回答1: Google does not publish the public IP address range for Cloud Shell. VPC firewall rules allow specifying the service account of the source and target. However, Cloud Shell

GCP open firewall only to cloud shell

孤人 提交于 2020-01-02 11:01:19
问题 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 cloud shell - either using cloud shell's IP range or service account ? 回答1: Google does not publish the public IP address range for Cloud Shell. VPC firewall rules allow specifying the service account of the source and target. However, Cloud Shell

How does the data in HOME directory persist on cloud shell?

寵の児 提交于 2019-12-24 18:38:47
问题 Do they use environment / config variables to link the persistent storage to the project related docker image ? So that everytime new VM is assigned, the cloud shell image can be run with those user specific values ? 回答1: Not sure to have caught all your questions and concerns. So, Cloud Shell is in 2 parts: The container that contains all the installed library, language support/sdk, binaries (docker for example). This container is stateless and you can change it (in the setting section of

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

只谈情不闲聊 提交于 2019-12-23 21:27:06
问题 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 any permission issues. As a permission test, if I run just "gcloud services enable cloudresourcemanager.googleapis.com", the API successfully enables. What am I missing? #!/bin/bash for project in $(gcloud projects list --format="value(projectId)")