2 Answers
- Newest
- Most votes
- Most comments
0
Are you writing your function on a Linux system or with Docker? When you do pip
install, the binaries installed will depend on your machine's OS and Python Lambda functions deployed with zip files use a managed runtime of Amazon Linux.
answered a year ago
0
I'm having the same issue but with using ldap3, however receiving the same stacktrace. Focus should not be on paramiko or ldap3, but on a lower level at core python module: socket, because that's where it's failing - when running socket.getaddrinfo
.
So why would that be a problem on AWS lambda? Are we receiving network? Is this something configuration related? In my case, I've added lambda function to a VPC, so it should receive an IP address and everything.
answered 7 months ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago
I´m writing on my Linux machine. But the compilation is done on a CI/CD resource where I have no access. But it´s another Linux machine. And the deploy is applied through Terraform.
If that is the case then I would recommend to package paramiko using Docker. You can create a layer with paramiko and its dependencies. You can test this works locally by using the Lambda runtime interface emulator.