Reputation: 1
docker run --rm gcr.io/google.com/cloudsdktool/google-cloud-cli:stable sh -c "gcloud firestore databases list"
ERROR: (gcloud.firestore.databases.list) [[email protected]] does not have permission to access projects instance [kreditbee-stage] (or it may not exist):
Request had insufficient authentication scopes. This command is authenticated as [email protected] which is the active account specified by the [core/account] property.
'@type': type.googleapis.com/google.rpc.ErrorInfo
domain: googleapis.com
metadata:fir
method: google.firestore.admin.v1.FirestoreAdmin.ListDatabases
service: firestore.googleapis.com
reason: ACCESS_TOKEN_SCOPE_INSUFFICIENT
If you are in a compute engine VM, it is likely that the specified scopes during VM creation are not enough to run this command.
See https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam for more information about access scopes.
See https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#changeserviceaccountandscopes for how to update access scopes of the VM.
Tried to run a docker and access firestore using gcp cli ,in VMs not getting able to access this getting some rpc error.
Upvotes: 0
Views: 42