Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Project metadata is empty

Hi,

I’ve run all the steps to ssh into the VM, but there’s nothing under metadata.google.internal/computeMetadata/v1/project/

The instance already has my public SSH key in ~/.ssh/authorized_keys, but the metadata doesn’t show up anything.

For those who would still want to see details about their project (especially the SSH key metadata part), they can issue the following commands in the Cloud Shell:

gcloud config set project MY-PROJECT-ID

gcloud compute project-info describe –format=json | jq -r ".commonInstanceMetadata"

Hope this helps.

1 Answers

Hi,

Nevermind. In the scenario described in the question I was actually logged out of "myhappyvm" instance. I saw that I still have to be ssh-ed into the actual VM to view the metadata shown in the video. I thought that the metadata can be queried by the Cloud Shell too.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?