juanjoDiaz/serverless-middleware

Add support for `sls deploy function`

Closed this issue · 10 comments

Does this support the serverless commands sls deploy function or sls invoke?

sls invoke should be supported.
sls deploy function I haven't checked. I should.

Are you having problems with those?

Yh deploy function definitely doesn't work. I'm using with serverless-webpack. Please have a look. Really need that functionality. I like this library but will have to hold off using it till there's a fix

Any update on this?

Sorry @shadrech I kind of implemented this but haven't had time to properly test and release

Hi @shadrech ,

I have a branch with this done since ages ago (https://github.com/juanjoDiaz/serverless-middleware/tree/add_hooks_for_deploy_function_and_invoke). Unfortunately, I haven't been able to test in, nor will I be in the foreseeable future.

If you want you can test that branch and let me know how it works.
you can install the branch in your repo using npm install --save juanjoDiaz/serverless-middleware#add_hooks_for_deploy_function_and_invoke

Could you confirm if everything works and I'll release it to NPM?

any news on this @juanjoDiaz @shadrech ?
I would also need this

There was a bug in the index.js file (fs.write should be fs.writeFile) but it still does not work :/
It does not deploy my middleware files to AWS
image

Hi @JonathanCallewaert ,

It seems that the latest version is broken. Feel free to use version v0.0.9 until it can be fixed.

Regarding this feature, no progress so far. As said, the branch is there but I haven't been able to push this forward.

Any update on this?

Deployed in version 0.0.12