I have a Lambda Layer with binaries that is bundle...
# help
m
I have a Lambda Layer with binaries that is bundled with Docker. Is there any way to get that to work with Live Lambda development? I tried it and wasn't surprise the binary wasn't found.
t
Layers don't work locally, you need to make sure the binaries are available locally
m
Thanks
Any tricks for layers being found in
/opt
? I just use
/opt
on my local filesystem?
t
If this is a node module you can just require it normally and it'll work on both places (in AWS it auto searches /opt/nodejs) if it's a normal binary I usually pass an env variable to say where to look for it
m
I'm storing something in
/tmp
and accessing a files in
/opt
. Yeah, probably needs env vars, thanks.