DEV Community

Discussion on: How to deploy Prisma in AWS Lambda with Serverless

Collapse
 
macbird profile image
macbird

how do you test lambdas layers locally, since localstack in the free version doesn't support layers, is there any other puglin you use?

Collapse
 
markkos89 profile image
Marcos Iglesias

Have you tried with serverless-offline? There is like a "workaround" for layers in local, with docker. Here is the link and a small preview of the docs:

Serverless-offline Docker & Layers

Hope this helps you!

Regards!

Collapse
 
talesmgodois profile image
talesmgodois

If your lambda is not bind to a http event you can use a command like the following:
npx serverless invoke local -s dev --function hello --path ./samples/hello.sample.json

where hello.sample.jon is a json file with the payload