I am having difficulty in figuring out how to include a service account with a proxy deployment to ApigeeX with the Deploy Maven Plugin and Cloudbuild. The proxy requires the service account as it includes a service callout policy with a element. The service account already exist.
I get the following error message when I try to run the deployment.
Thanks for the suggestion. That is exactly what I was looking for. Unfortunately I still seem to be getting the same error. The service account email will work if I attach it through the console, but doesn’t seem to deploy properly. The service account has Apigee Service Agent and Service Account User roles. Could it be permissions related?
@marc - Can you please share more logs? Especially the call that was made to deploy the proxy? and can you confirm that the error message is still the same, involving
"MISSING_SERVICE_ACCOUNT"
Also please confirm the Maven profile in your pom that you are invoking (in your case “googleapi”) has
Thanks, I was missing the ${googleTokenEmail} variable from the POM file. I feel one step closer. Now it seems that it is a matter of setting proper permissions for the service account. Again, the service account that I am trying to attach in the build process has Apigee Service Agent and Service Account User roles. It works as intended if I manually apply it to the proxy in the console. I am getting this error:
One more tip - Try running the mvn command with “-X” to print the debug logs. Probably the value you are passing is not getting substituted correctly. With the -X option, it should show the different args, etc.
Hello, sorry for the delay in getting back to you. I am still having issues with configuring the service account with the proper permissions, but I think that is outside of the scope of my initial question. The service account is indeed getting included in the build pipeline. Thank you for your help with this.