serverless-google-cloudfunctions icon indicating copy to clipboard operation
serverless-google-cloudfunctions copied to clipboard

Support serviceAccount option for deployment

Open xyi opened this issue 5 years ago • 10 comments

xyi avatar Mar 13 '19 02:03 xyi

Cool! I hope it'll be merged soon :+1:

vranystepan avatar Mar 24 '19 09:03 vranystepan

This is exactly what I wanted, would be great to get it merged!

davidjb99 avatar Jun 18 '19 21:06 davidjb99

Related to #161

@pmuens Do you think this good to go?

paulotokimatu avatar Nov 11 '19 20:11 paulotokimatu

Anxious to see this in.

jorgejch avatar Jan 10 '20 10:01 jorgejch

btw, tested. works.

functions:
  first:
    serviceAccount: account_email
    ...

jorgejch avatar Jan 11 '20 06:01 jorgejch

Do we have an ETA for merge?? I'm really wanting this feature :)

luisgreen avatar Feb 11 '20 16:02 luisgreen

This feature is super desirable, really need this.

jamestjw avatar Mar 01 '20 13:03 jamestjw

This pull request doesn't work anymore, becuase it's now called serviceAccountEmail in GCP Cloud Functions JSON/YAML payload.

You can use serverless-google-cloudfunctions-amazing npm package based on serverless-google-cloudfunctions-awsome with some advanced features that are not supported yet in serverless-google-cloudfunctions package.

Usage example (using variable reference):

functions:
  example:
    serviceAccount: ${self:custom.serviceAccount.${self:provider.stage}}

OR

functions:
  example:
    serviceAccount: [email protected]

shaharappload avatar Mar 08 '20 14:03 shaharappload

After one year, there is always interested people about this feature in the SF GCP plugin (including me). The project of @shaharappload is interesting but that could be great to add this kind of feature natively in the plugin. If I create a new PR for this, it will be reviewed?

GerardPaligot avatar Oct 01 '21 14:10 GerardPaligot

@GerardPaligot was looking to make a patch with this. Found that this was already merged here.

functions:
  a-function:
    serviceAccountEmail: [email protected]

davedc avatar Apr 21 '22 05:04 davedc