cerbos / cerbos-aws-lambda

Gateway service implements AWS Lambda runtime and invokes Cerbos server API hosted in the same AWS Lambda instance.
Apache License 2.0
16 stars 5 forks source link

Publish as Lambda Layer #4

Open alexolivier opened 1 year ago

alexolivier commented 1 year ago

https://github.com/mthenw/awesome-layers https://aws.amazon.com/about-aws/whats-new/2018/11/aws-lambda-now-supports-custom-runtimes-and-layers/

xinha-sh commented 1 year ago

Hey @alexolivier I wanted to use cerbos with https://sst.dev/ . They do support running lambda with layers. I don't have much knowledge on creating layers, but if you would point me in correct direction I can try.

There's an example on sst.dev for using sharp library as layer. https://sst.dev/examples/how-to-automatically-resize-images-with-serverless.html Do you think similar approach will work ?

michaelgmcd commented 1 year ago

@xinha-sh did you ever have any luck with this?

xinha-sh commented 1 year ago

They do support running lambda with layers. I don't have much knowledge on creating layers, but if you would point me in correct direction I can try.

Nope.

alexolivier commented 1 year ago

This is still on our radar to tackle once a couple more features land which will make it easier to do. We will keep you updated.