I tried using the aws encryption lib to encrypt/decrypt data with a KMS key in an AWS Lambda ( using python ). However, I get errors when running the lambda ( complaining about shared libs not found, I will update later with exact lib ). I am guessing that the SDK is using shared libs that are not installed in the AWS lambda environment.
This is the SDK I am using: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/python.html
When building my package I am doing pip install aws-encryption-sdk and cryptography.
Anyone who can give me pointers how to fix it?
Update:
Here is the error message:
Unable to import module 'lambdaMain': libffi-d78936b1.so.6.0.4: cannot open shared object file: No such file or directory
Update 2: For those wondering about the solution. I built the library on the wrong platform. It's really important to do the pip install etc on an amazon AMI that's compatible with whatever lambda runtime you are using.