gcloud

Cannot connect to Compute Engine instance via SSH

若如初见. 提交于 2020-01-22 07:55:41
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Cannot connect to Compute Engine instance via SSH

喜夏-厌秋 提交于 2020-01-22 07:55:14
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Cannot connect to Compute Engine instance via SSH

萝らか妹 提交于 2020-01-22 07:55:07
问题 I've just created an instance using Google Cloud Platform's Compute Engine and tried to connect to it via SSH connection but it failed. I'm following the quick start here. I have generated the SSH key on my PC and have entered the pass-phrase when asked. Though I fail to succeed a log in :-( I got the PuTTY SSH's error as below snapshots. Then I get the PuTTY window inactive. 回答1: I have the same problem but found a workaround to connect via PuTTY manually. In brief Generate SSH key for the

Gcloud command line get default project_id

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-22 05:35:05
问题 I'm looking for a one-liner to get the default project id with gcloud config list core/project give me Your active configuration is: [default] [core] project = myproject_id While I want to have only myproject_id. The goal is to use the result in a script. 回答1: The easiest way to do this is to use the --format flag on gcloud. gcloud config list --format 'value(core.project)' 2>/dev/null The --format flag is available on all commands and gives you full control over what is printed, and how it

Retake ownership from service account

▼魔方 西西 提交于 2020-01-16 16:10:07
问题 I've assigned ownership of one of my google sheets to a service account from a gcloud project I am working on (not a smart thing to do, I know...). How can I re-assign ownership of this sheet to my main user account? 回答1: If you have permissions on the service account (e.g. you're owner of the GCP project), you can use the command line tools to authenticate as the service account and modify the permissions there. Step by step process (you might have already some of those steps done): Download

GCP composer creation failed with bad request

江枫思渺然 提交于 2020-01-15 09:32:05
问题 Trying to create GCP composer environment instance with gcloud CLI gcloud composer environments create "jakub" \ > --project "projectX" \ > --location "us-central1" \ > --zone "us-central1-a" \ > --disk-size 50GB \ > --node-count 3 \ > --image-version composer-1.7.1-airflow-1.10.2 \ > --machine-type n1-standard-2 \ > --python-version 3 \ > --labels env="test" After an hour getting error: f7b3f4-6b95-4fb0-85e3-f39a2b11cec9] failed: Http error status code: 400 Http error message: BAD REQUEST

Bitbucket Pipelines: gcloud crashed (UnicodeDecodeError)

女生的网名这么多〃 提交于 2020-01-14 14:33:33
问题 Edit: I want to note that this issue doesn't happen if I deploy manually with cloud sdk on my computer. Only with pipelines Edit again: I added a verbosity=debug to my gcloud app deploy. Here is what's generated: Do you want to continue (Y/n)? DEBUG: No bucket specified, retrieving default bucket. DEBUG: Using bucket [gs://staging.PROJECT.appspot.com]. DEBUG: Service [appengineflex.googleapis.com] is already enabled for project [PROJECT] Beginning deployment of service [default]... INFO: Need

Using gcloud on Travis CI

南笙酒味 提交于 2020-01-14 05:15:07
问题 I have gcloud installed and working and a service account gets also activated. I run the following and get a success(?): $ gcloud auth activate-service-account "${GAE_CLIENT_ACCOUNT}" --key-file "${GAE_CLIENT_KEY_JSON_FILE}" Activated service account credentials for: [xxxxx@developer.gserviceaccount.com] Then I run this: $ gcloud preview app deploy app.yaml --project "${GAE_PROJECT_ID}" --quiet --version "${GAE_PROJECT_VERSION}" You are about to deploy the following modules: - ricochet-robots

gcloud compute addresses list returns 0 results although I have external ephemeral addresses

末鹿安然 提交于 2020-01-14 04:19:44
问题 I have one google compute instance in my project with an external IP. A describe command on the instance shows me: networkInterfaces: - accessConfigs: - kind: compute#accessConfig name: External NAT natIP: xx.yyy.nnn.mmm networkTier: PREMIUM type: ONE_TO_ONE_NAT fingerprint: hjhjhjhjh= kind: compute#networkInterface name: nic0 network: https://www.googleapis.com/compute/v1/projects/foo-201800/global/networks/default However, when I run on the cloudshell. $ gcloud config get-value project Your

Trouble using gcloud init

拥有回忆 提交于 2020-01-13 02:18:50
问题 Saw a sweet video on gcloud and wanted to give it a shot but was stymied at the start. I did the setup, downloaded the tools, ran gcloud auth login, all good. Tried to init a project and got an error I'm not sure how to fix. $ gcloud init my-awesome-project-555 Initialized gcloud directory in [/Users/freddy/my-awesome-project-555/.gcloud]. Cloning [https://source.developers.google.com/p/my-awesome-project-555/r/default] into [default]. Initialized empty Git repository in /Users/freddy/my