Scenario : Sometime google’s gcp ternimal will not work as excepted, so we can used this way to run google cloud shell
Log into GCP website, and click the hamburger icon and find the “Compute Engine”, we want to create a new VM.
click create instance
Change the image setting , select Google Cloud shell and the latest version
Change Access scopes and setting networking
Create the instance, click ssh button after successfully create
install google cloud shell
/var/lib/google/run-cloud-shell.sh
If you use gcloud auth list to search your current credentialed account, it will used google service account
gcloud auth list
If you want to change it, you can execute gcloud init, and you also need to type some settings(look at below)
gcloud init
After that, every thing is setting complete!!!!