softprops / serverless-rust

⚡ 🦀 a serverless framework plugin for rustlang applications
https://www.npmjs.com/package/serverless-rust
MIT License
542 stars 82 forks source link

Can we support `invoke local` #20

Closed drusellers closed 5 years ago

drusellers commented 5 years ago

💡 Feature description

I'd love to be able to serverless invoke local to do some quick testing

💻 Basic example

My question is more if its even possible

softprops commented 5 years ago

Thanks for reaching out. This is currently blocked by this issue in serverless proper https://github.com/serverless/serverless/issues/5542#issuecomment-455839588

The good news is that since this is just a rust you can invoke the function by setting up a secondary bin and invoke it using cargo. I'll add create a reference example for that

drusellers commented 5 years ago

That would be great to have. Thank you.

triptec commented 5 years ago

Seems things are moving https://github.com/serverless/serverless/pull/5863

softprops commented 5 years ago

fantastic! I'll keep an eye on that

ajmwagar commented 5 years ago

serverless/serverless#5863 is now merged. Hopefully, we can add support for invoke local --docker soon.

softprops commented 5 years ago

I'll take a look this weekend

softprops commented 5 years ago

so I can get it ready by testing a local git source dependency on serverless but I'd want to hold off on publishing until the new invoke local support makes its way into a release, https://github.com/serverless/serverless/releases

softprops commented 5 years ago

@ajmwagar I've got a pull with a working example. I'll merge n ship when the next serverless framework release rolls around

ajmwagar commented 5 years ago

Great! I’m super excited to use this.

softprops commented 5 years ago

Me too. It was possible before with lambci but this makes things vastly more straight forward.

Great news. Serverless moves fast and just released a new version containing this feature. I'll update my test this weekend and publish a new version

softprops commented 5 years ago

https://github.com/softprops/serverless-rust/issues/30 looks like it may be a blocker. there appears to be an artifact packaging bug in serverless@1.39.0

ajmwagar commented 5 years ago

Dang. Hopefully it’ll get resolved soon.

Thanks for maintaining this awesome plugin!

softprops commented 5 years ago

a patch was released https://github.com/serverless/serverless/releases/tag/v1.39.1 Ill check again when I get home tonight and publish a release

softprops commented 5 years ago

published in serverless-rust@0.3.2

Codii commented 4 years ago

Hey, coming back on this after ages but is this still an issue ?