I'm trying to deploy a function to Google Function running as a different service account other than the default "PROJECT_ID"@appspot.gserviceaccount.com.
Is this even possible?
What I've tried until now is:
- Auth as the service account and run the deploy command
- Auth as the service account and run the deploy command using "--account"
The functions keep getting deployed with the default serviceAccount.
Thanks
EDIT (2019/02/13):
As stated by @JJC, This is now available via gcloud beta features via:
gcloud beta functions deploy ... --service-account=$YOUR_SA_HERE