Reputation: 567
I have a VM instance having default service account attached.
While doing bq ls on that instance throws error as below:
(airflow) [root@airflow-qa-master ~]# bq ls
BigQuery error in ls operation: Insufficient Permission
So I gave other permissions to that default service account listed below:
BigQuery Admin
BigQuery Data Editor
BigQuery Data Owner
BigQuery Data Viewer
Compute Admin
Compute Storage Admin
Editor
Owner
Still it is throwing Invalid credentials issue.
Upvotes: 2
Views: 1222
Reputation: 916
The Default scope for an instance does not allow BigQuery access. There are two considerations for whether an API is usable on GCE, first being whether the attached service account is authorized to perform those actions. Second is whether the instance is allowed to perform those actions.
You can change the scope of an instance using this part of their documentation.
Upvotes: 3