lambda-s3-sftp icon indicating copy to clipboard operation
lambda-s3-sftp copied to clipboard

paramiko is not importing.

Open ctrl-alt-deelete opened this issue 6 years ago • 3 comments

I need to know how to set up the trigger for this scenario. When running, it said no module name Paramiko

ctrl-alt-deelete avatar Sep 18 '18 16:09 ctrl-alt-deelete

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).

renanivo avatar Sep 18 '18 17:09 renanivo

I tried running it on AWS Lambda. Where would I run 'make package'? I'm sort of confused on how to set this up.

ctrl-alt-deelete avatar Sep 18 '18 17:09 ctrl-alt-deelete

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)

im0khu avatar Sep 29 '18 12:09 im0khu