abiA
Deno3y ago
abi

Using deno-lambda for AWS SAM

I'm having issues trying to run deno-lambda (https://github.com/hayd/deno-lambda) locally. (I haven't tried running it on AWS for real yet.)

Init failed error=fork/exec /var/task/bootstrap: no such file or directory InvokeID=

My main module filename is
main.ts
and it exports a
handler
function which I think should work. Here is how I build and run everything:

sam validate
rm -rf .deno_dir
DENO_DIR=.deno_dir deno cache main.ts
cp -R .deno_dir/gen/file/"$PWD"/ .deno_dir/LAMBDA_TASK_ROOT
sam local invoke MyLittleFunction --event events/log-0001.json
Was this page helpful?