Uur Kn
Uur Kn

Reputation: 74

Can't deploy service on google cloud

I am trying to publih my flask api using google cloud terminal.

I am getting this error after a while after entering "gcloud app deploy" on google cloud terminal

 {\"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\"}

I gave these permissions to myself:

I

Upvotes: 0

Views: 264

Answers (1)

Uur Kn
Uur Kn

Reputation: 74

I changed app.yaml and added

automatic_scaling:
    min_num_instances: 1
    max_num_instances: 7    

to it. It solved the problem!

Upvotes: 2

Related Questions