gcloud

How do I list all IAM users for my Google Cloud Project

﹥>﹥吖頭↗ 提交于 2020-01-01 01:58:11
问题 I'd like to be able to list all users and service account associated with my projects (preferably using the gcloud CLI tool, but happy to make an API call if needs be). I can easily list all the service accounts associated with a project using this, but how can list all the users too? I'd expect something like the following, but I cannot see anything in the doco: gcloud beta iam users list 回答1: List all service accounts in a project The following command lists all service accounts associated

Google Cloud ML FAILED_PRECONDITION

随声附和 提交于 2019-12-30 22:56:39
问题 I am trying to use Google Cloud ML to host a Tensorflow model and get predictions. I have a pretrained model that I have uploaded to the cloud and I have created a model and version in my Cloud ML console. I followed the instructions from here to prepare my data for requesting online predictions. For both the Python method and the glcoud method I get the same error. For simplicity, I'll post the gcloud method: I run gcloud ml-engine predict --model spell_correction --json-instances test.json

Google Cloud ML FAILED_PRECONDITION

狂风中的少年 提交于 2019-12-30 22:56:03
问题 I am trying to use Google Cloud ML to host a Tensorflow model and get predictions. I have a pretrained model that I have uploaded to the cloud and I have created a model and version in my Cloud ML console. I followed the instructions from here to prepare my data for requesting online predictions. For both the Python method and the glcoud method I get the same error. For simplicity, I'll post the gcloud method: I run gcloud ml-engine predict --model spell_correction --json-instances test.json

Using gcloud console for Google App Engine causes a Runtime error from metrics

夙愿已清 提交于 2019-12-30 09:50:21
问题 I'm trying to use the gcloud console through the browser. When I clone my repository and start the dev server, I get a runtime error from metrics: $ dev_appserver.py $PWD Traceback (most recent call last): File "/google/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 101, in <module> _run_file(__file__, globals()) File "/google/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 97, in _run_file execfile(_PATHS.script_file(script_name), globals_) File "

Can I automate Google Cloud SDK gcloud init - interactive command

跟風遠走 提交于 2019-12-29 02:57:24
问题 Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command? 回答1: One does not need to run gcloud init . Main goal is to make sure credentials are configured and perhaps the project property is set. If you have service-account credentials, gcloud can be configured and ready to go via the following: gcloud auth activate-service-account --key-file

Can I automate Google Cloud SDK gcloud init - interactive command

柔情痞子 提交于 2019-12-29 02:57:06
问题 Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command? 回答1: One does not need to run gcloud init . Main goal is to make sure credentials are configured and perhaps the project property is set. If you have service-account credentials, gcloud can be configured and ready to go via the following: gcloud auth activate-service-account --key-file

gcloud: how to download the app via cli

笑着哭i 提交于 2019-12-29 01:38:11
问题 I depolyed an app with gcloud preview app deploy. Is there a way to download it to an other local machine? How can I get the files? I tried it via ssh with no success (can't access the docker dir) UPDATE: I found this: gcloud preview app modules download default --version 1 --output-dir=my_dir but it's not loading files Log Downloading module [default] to [my_dir/default] Fetching file list from server... |- Downloading [0] files... -| 回答1: Currently, the best way to do this is to pull the

What purpose does the default service serve in Google's app engine

我与影子孤独终老i 提交于 2019-12-28 04:31:13
问题 When deploying an app with a microservices architecture to google's app engine, it requires one of my services to be the default service. Why is this required and does the default service behave any differently to any other 'named' service? 回答1: Here would be some roles/reasons for the default service (I'm fairly sure the list is not exhaustive): the fallback destination for routing a request using a dispatch.yaml file if none of the routing rules is matched the fallback destination for cron

the zone does not have enough resources available to fulfill the request/ the resource is not ready

时光毁灭记忆、已成空白 提交于 2019-12-28 04:16:25
问题 I failed to start my instance (through the web browser), it gave me the error: "The zone 'projects/XXXXX/zones/europe-west4-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later." I thought it might be the quota problem at first, after checking my quota, it showed all good. Actually, I listed the available zones, europe-west4-b was available, but I still gave a shot to move the zone. Then I tried "gcloud compute instances move XXXX --zone

how to update a GAE app with GCLOUD via socks5 proxy

别来无恙 提交于 2019-12-25 18:29:41
问题 i created my GAE app in development console. i use to update it using appcfg. now i am behind a socks5 proxy, and couldnt find the way to set appcfg to go through. can someone reply all the steps to do it please ? could be using appcfg or gcloud tools thank you very much 回答1: You can use accpcfg or gcloud behind a proxy by setting the HTTP_PROXY or HTTPS_PROXY environment variables. For example, on windows: set HTTP_PROXY=http://cache.mycompany.com:3128 set HTTPS_PROXY=http://cache.mycompany