2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
Instructions for how to include libraries with your lambda function are available in the aws documentation:
Java: https://docs.aws.amazon.com/lambda/latest/dg/java-package.html
Python: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html
Nodejs: https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html
You should be able to include the AWS Encryption SDK in your lambda by following the instructions for your language.
answered 4 years ago
0
I was having issues while preparing a deployment package for lambda. When I was zipping the requisite libraries some files which were hidden within the sub directories were being skipped and this was causing issues because the deployment package was essentially incomplete.
answered 4 years ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
I know this is an old thread but for anyone who is wanting to do this using node.js do the following: create a dicrectory called nodejs. CD into the nodejs directory. Then npm init -y Then npm install '@aws-crypto/client-node Then cd out of the nodejs directory and zip the nodejs directory and call the file nodejs.zip.
Next go to AWS Lambda and select layers, add new layer. Name it aws-crypto and upload your nodejs.zip file.
In your lambda function add the aws-crypto layer you just created to your function.
in your index.js include: require('@aws-crypto/client-node');