Package Lambdas with serverless-bundle

Link to chapter - https://serverless-stack.com/chapters/package-lambdas-with-serverless-bundle.html

How do i bundle static files of my choosing with my lambda functions, individually or otherwise?

I’d like for say an executable like ffmpeg to be included in the same directory with my functions so i can call spawnsync on it. I’m using it as a workaround to lambda layers. Please help.

Thank you.

I think Layers are actually a good use case for this. It’s better to keep your Lambda functions small. Is this not working for you?

It’s not working.
The binaries for layers are supposed to be in the opt folder but I get a “not found” error every time I try to make the calls. Running ls does truly show that there’s no opt directory.

Mayowa Daniel

Running ls inside your Lambda function you mean? We don’t have a chapter on Lambda Layers but there are some good posts on this out there.