I have Google Cloud SDK in my local machine, and when I run the command:
gcloud beta pubsub subscriptions pull --auto-ack MY_SUBSCRIPTION_NAME
It works just fine and I can see the messages.
But, if I do the same thing in the GCE VM I created, I get the following error:
ERROR: (gcloud.beta.pubsub.subscriptions.pull) PERMISSION_DENIED: User not authorized to perform this action.
I've tried several things already, like:
Stop the instance and add a Service Account;
Make my instance "Allow full access to all Cloud APIs";
Do
sudo yum update google-cloud-sdk
I don't know what else to try to make it work. Any ideas? Please give me a light here.
