Our current setup includes multiple environments for dev, staging and production. Each of those Environments runs its own ESP and gets deployed via our CI/CD pipeline to kubernetes.
We also want to deploy the ESp / Endpoint configuration in that pipeline but are struggling with setting the correct permissions for the service account, in order for it to be able to write
new proto files to the ESP.
The error message reads:
ERROR: (gcloud.endpoints.services.deploy) User [<service-account>] does not have permission to access service [<api-name>-testing.endpoints.<project>.cloud.goog] (or it may not exist): Caller does not have permission 'servicemanagement.services.update' on service '<api-name>-testing.endpoints.<project>.cloud.goog'.
We currently have the following permissions assigned to the service account:
- Kubernetes Engine Developer
- Endpoints Portal Admin (Is this needed? It was just a test)
- Project Viewer (Ideally this would not be required)
Any ideas what the correct role/permission is, so that the service account is able to deploy the updated proxy configuration?