serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
271 stars 127 forks source link

Question - How to deploy GCP Second Gen cloud functions? #289

Open eduardoblucas opened 2 years ago

eduardoblucas commented 2 years ago

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

pgrzesik commented 2 years ago

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

eduardoblucas commented 2 years ago

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

pgrzesik commented 2 years ago

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 💯

faradaytrs commented 2 years ago

I am sure many people would like to use it

kevboutin commented 2 years ago

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.

a88zach commented 2 years ago

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

sue445 commented 2 years ago

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

pgrzesik commented 1 year ago

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 commented 1 year ago

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 👍

seanspeaks commented 1 year ago

@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?