Skip to content Skip to sidebar Skip to footer

Unable To Use Python Library : 'paramiko' With Aws Lambda

I'm trying to transfer a file to a remote server and for that I'm using paramiko library. I'm able to successfully transfer the file to a remote server by running the python script

Solution 1:

There are typically two reasons for this:

Either that you haven't named the handler name correctly, in this case go to Lambda -> Functions -> Your Function -> Configuration and check that the value in the handler field is the right one.

Or that one of the dependencies that you included in the zipped file is compiled to your machines's architecture, which is typically different from the one that's hosting the lambda function. In this case you should find out what Linux version is hosting you lambda function, and get a pre-compiled version that can be used by AWS lambda.

Post a Comment for "Unable To Use Python Library : 'paramiko' With Aws Lambda"