【发布时间】:2020-05-28 21:43:37
【问题描述】:
我正在使用 windows 为我的 golang 项目运行本地 appengine。
我收到googleapi: Error 403: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied on resource 'projects/xxxx/locations/xxxx/keyRings/xxx/cryptoKeys/xxx' (or it may not exist)., forbidden。然后我通过使用服务帐户 xxxx.json 的值设置环境变量GOOGLE_APPLICATION_CREDENTIALS 来解决。
然后部署在GCP appengine 它返回相同的错误googleapi: Error 403.....
那么如何在 GCP appengine 中设置GOOGLE_APPLICATION_CREDENTIALS。
【问题讨论】:
标签: google-app-engine go google-cloud-platform