Hi All,
I’m creating a function on Lambda in JavaScript (node.js) that is supposed to work with mp3 file downloaded from S3 bucket.
JS function has as a dependency lambda-audio lib which is a JS wrapper on lame and sox (linux) binaries used to manipulate mp3 file.
While using serverless to deploy my function both files (lame and sox) are omitted and available during runtime, thus generating error. lambda-audio author is using Claudia.js to upload functions to Lamdba and says that it works with it.
I have used in my serverless.yml:
package:
include:
- node_modules/lambda-audio/bin/lame
- node_modules/lambda-audio/bin/sox
to include those files but generated zip in .serverless directory doesn’t include those files.
I also use severeless-webpack plugin (which I plan to remove since Node 8.10 is supported now), which can interfere witch package building.
I’m not sure, so could anyone tell me whether those binary files (lame and sox) should be automatically included in a zip file uploaded to lambda or I should manually include them? If so, how to do it?
thanks in advance 