0
votes

Below is the error coming while creating a cluster:

(gcloud.container.clusters.create) ResponseError: code=403, message=Request had insufficient authentication scopes

1
I have a free tier account but whenever i try to create a container cluster i am getting below error from one of the script (gcloud.container.clusters.create) ResponseError: code=403, message=Request had insufficient authentication scopes. for other script it is giving similar error. : googleapi: Error 403: Request had insufficient authentication scopes., forbidden May i know how i can resolve this ? - Gaurav Chatrath
i was unable to write in text so i explained in comment . Can anyone help ? - Gaurav Chatrath
You should edit your question and put it all in there. Read How to Ask and minimal reproducible example. - Nic3500
Welcome to Stack Overflow! Other users marked your question for low quality and need for improvement. I re-worded/formatted your input to make it easier to read/understand. Please review my changes to ensure they reflect your intentions. But I think your question is still not answerable. You should edit your question now, to add missing details (see minimal reproducible example ). Feel free to drop me a comment in case you have further questions or feedback for me. - GhostCat

1 Answers

0
votes

Check the IAM roles for the "Compute Engine default service account" and make sure it has enough permission to run the command [2]. Usually it would have an owner or editor role.

If you are on the Google Cloud Console, when creating an instance you need to look for the 'Identity and API access' section, and select 'Allow full access to all Cloud APIs' [1]

[1]https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances?hl=en_US&_ga=2.168486115.-390700867.1538154355 [2]https://cloud.google.com/iam/docs/granting-roles-to-service-accounts