[英]How to grant datastore access to a service account?
I can't use cloud datastore with a service account. 我无法通过服务帐户使用云数据存储。 However it works when using sdk default credentials method (gcloud auth login).
但是,当使用sdk默认凭据方法(gcloud auth登录)时,它可以工作。
The error is Error rpc error: code = 7 desc = Not authorized.
错误为
Error rpc error: code = 7 desc = Not authorized.
. 。 I was able to grant access to a storage bucket, but I can't find anything like this for datastore.
我能够授予对存储桶的访问权限,但是找不到用于数据存储的类似内容。
How do I grant cloud storage access to a service account? 如何授予云存储访问服务帐户的权限?
ps. ps。 I need this because I want to use datastore outside of app engine.
我需要这样做,因为我想在应用程序引擎之外使用数据存储区。
Looks like I found the solution: 看起来我找到了解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.