To add libraries to lambda, there are a few extra steps that need to be taken in the form of lambda layers. Lambda layers are a nice way of packing any library into an importable file that a serverless environment can access. Because there is no way to directly download or install libraries in a serverless environment, this is the best approach to take.
Lambda layers are quick to set up and in this video I go over the basics of installing a library and adding a lambda layer for node js.
Ещё видео!