启用storage.objects.create访问云功能

时间:2019-01-10 07:03:23

标签: google-cloud-platform google-cloud-functions

我遵循了本教程,但是在部署时陷入困境

  

gcloud beta函数部署my-serverless-app-1_0_0 --entry-point   处理程序--trigger-http --stage-bucket中后功能   --memory = 2048MB

我收到此错误

ERROR: (gcloud.beta.functions.deploy) 403 Could not upload file [/var/folders/wh/_71nr4c122nbw45k9zmlhbtm0000gn/T/tmpvW22pK/fun.zip] to [medium-post-functions/us-central1-projects/tutorial-228204/locations/us-central1/functions/my-serverless-app-1_0_0-stchnjlumshy.zip]: myemail@gmail.com does not have storage.objects.create access to medium-post-functions.

我猜我必须在Google控制台的某处启用某些访问权限吗?

1 个答案:

答案 0 :(得分:0)

按照this文档,为存储桶{{1}中的帐户myemail@gmail.com添加正确的权限。