'Service account for cloud function serverless framework

I’m trying to deploy a google cloud function using custom runtime service account through serverless framework. So How to specify service account name in serverless.yml? For google cloud function



Solution 1:[1]

Whilst it is possible to specify a service account for a Cloud Function, it would seem that the Serverless Framework doesn't yet support specifying it in their configuration.

There is an open issue for this feature on GitHub as well as an open pull request. Unfortunately neither have moved forward in quite a while.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ianyoung