I'm trying to deploy Google Cloud Functions behind Cloud Endpoints according to these steps:
https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions
I followed the steps exactly like described and added API key authentication to the OpenAPI specification.
When I call the endpoint with the API key I get the following error:
INTERNAL:Calling Google Service Control API failed with: 403 and body: \bMPermission 'servicemanagement.services.check' denied for the consumer project
.
Is there some additional role I have to add to a service account ? I did not specify a service account when executing gcloud run deploy
.
Thank you for your help