【发布时间】:2021-06-17 13:38:58
【问题描述】:
如果我看https://cloud.google.com/functions/docs/reference/iam/roles#standard-roles 我看到了:
- roles/cloudfunctions.admin
- roles/cloudfunctions.developer
- roles/cloudfunctions.viewer
- roles/cloudfunctions.invoker
后者只包含一个权限,cloudfunctions.functions.invoke
我们正在使用 Google Cloud Workflows 来调用我们的云功能,但它目前因错误而失败:
"error": {
"code": 403,
"message": "Permission 'cloudfunctions.functions.call' denied on resource 'projects/redacted/locations/europe-west2/functions/funcname' (or resource may not exist).",
"status": "PERMISSION_DENIED"
}
令我惊讶的是,有一个角色/cloudfunctions.invoker 角色,它不是包含cloudfunctions.functions.call 的角色/cloudfunctions.caller。 roles/cloudfunctions.developer 包含该权限,但也包含许多其他内容。为什么没有这样的角色?
是的,我知道我可以创建一个自定义角色,如果我不必这样做就好了。
【问题讨论】: