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

Question - How to deploy GCP Second Gen cloud functions?

Open eduardoblucas opened this issue 3 years ago • 10 comments

How to config the serverless.yaml to deploy second gen functions?

eduardoblucas avatar Mar 09 '22 20:03 eduardoblucas

Hello @eduardoblucas - I'm afraid that second gen functions are currently not supported.

pgrzesik avatar Mar 10 '22 13:03 pgrzesik

@pgrzesik Thank you, any idea if/when this will be implemented?

eduardoblucas avatar Mar 10 '22 15:03 eduardoblucas

No idea, you're the first person mentioning it and there are no plans to implement support for it. If someone from the community want to give it a shot - please feel free to do so 💯

pgrzesik avatar Mar 10 '22 15:03 pgrzesik

I am sure many people would like to use it

faradaytrs avatar Apr 19 '22 04:04 faradaytrs

I am sure many people would like to use it

Absolutely! The benefits that second gen cloud functions brings puts it on par with Azure Cloud Functions and Lambdas. I would definitely hope to see this capability real soon.

kevboutin avatar Jun 27 '22 03:06 kevboutin

I can work on this as I also need this feature. However, this feature is still in beta and is not supported by the v1 api endpoints. Once the v2 api is out of beta, I can create a PR

a88zach avatar Jul 28 '22 10:07 a88zach

2nd gen is already GA, and I could to find the v2 API in googleapis

sue445 avatar Sep 25 '22 15:09 sue445

Hello folks, I’ve recently got access to this project and in the coming weeks I will try to investigate this issue (among a few other open initiatives). If you have any insights about this particular feature, please share it, it will be much appreciated 🙇

pgrzesik avatar Oct 13 '22 23:10 pgrzesik

Hey there, I've managed to dive a bit deeper into the differences between v1 and v2 and while the function definition is not that different, the major change is around supported events and how they're defined. It might require significant effort to handle that, so I'm not sure if I can provide any ETA for v2 support at the moment. I'll continue looking into it though 👍

pgrzesik avatar Oct 23 '22 15:10 pgrzesik

@pgrzesik Might be interested to help here- we're using serverless for our OS Frigg Framework (friggframework.org) and we've got a request for (and an obvious benefit to) using Gen2. I had peeked at it as well a few weeks ago and it looks ultimately like EITHER using v2 apis JUST for GCP, or re-writing everything to use v2 apis... which means a lot of type changes etc.

Any progress/thoughts on the approach?

seanspeaks avatar Jan 03 '23 21:01 seanspeaks