首页 > 解决方案 > 为云功能启用 storage.objects.create 访问

问题描述

我按照本教程进行操作,但在部署时卡住了

gcloud beta 函数部署 my-serverless-app-1_0_0 --entry-point handler --trigger-http --stage-bucket medium-post-functions --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-cloud-platformgoogle-cloud-functions

解决方案


按照文档myemail@gmail.com为存储桶上的帐户添加正确的权限。medium-post-functions


推荐阅读