我正在尝试使用Google Cloud Terminal发布我的Flask API。
在Google云终端上输入“ gcloud应用程序部署”后,过一会儿出现此错误
{\"ResourceType\":\"compute.beta.regionAutoscaler\",
\"ResourceErrorCode\":\"403\",
\"ResourceErrorMessage\":{\"code\":403,
\"message\":\"The caller does not have permission\",
\"status\":\"PERMISSION_DENIED\",
\"statusMessage\":\"Forbidden\",
\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/<MYAPPNAME>/regions/europe-west1/autoscalers\",
\"httpMethod\":\"POST\"}
我将这些权限授予自己:
我更改了app.yaml并添加了
automatic_scaling:
min_num_instances: 1
max_num_instances: 7
对此。它解决了问题!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句