lambda-s3-sftp
lambda-s3-sftp copied to clipboard
paramiko is not importing.
I need to know how to set up the trigger for this scenario. When running, it said no module name Paramiko
Are you running it locally in a virtualenv or in the AWS lambda? If you are using lambda, did you run make package
and uploaded the zip file?
Note: We are about to move the root of this repository network to https://github.com/yunojuno/lambda-s3-sftp, so you might want to try that fork (which has more features).
I tried running it on AWS Lambda. Where would I run 'make package'? I'm sort of confused on how to set this up.
ssh to your ec2 linux host (you can ssh to your own other host)
mkdir sftp
pip3.6 install -t /home/ec2-user/sftp
cd sftp
zip -r lambda.zip ./*
zip lambda.zip lambda_function.py
then upload the zip to your lambda function. (from console or from cli, it's up to you)