I'm trying to connect to MongoDB-Atlas using Lambda. Locally the code runs perfectly, but using AWS Lambda I get errors related to SSL dependencies (I think...).
I want to use mongodump, so I added the latest version of mongodump binary, version r3.6.3, and I also added libssl.so.1.0.0, libsasl2.so.3, libgo.so.9 and libcrypto.so.1.0.0. All of them are in the root of the folder that I uploaded to Lambda.
This is how my relevant mongo query inside the code looks like:
mongodump -d test -u adminUser -p "notmyrealpassword" -o "/tmp/FriApr062018_1523037710445/" --authenticationDatabase admin --ssl --port 27017 -h "host0.mongodb.net,host1.mongodb.net,host2.mongodb.net"
This is how the folder looks like:
index.js libcrypto.so.1.0.0 libgo.so.9 libsasl2.so.3 libssl.so.1.0.0 mongodump node_modules package.json
When I try to run it using Lambda I get this error (again, the code runs fine on a local machine):
/var/task/mongodump: /var/task/libssl.so.1.0.0: no version information available (required by /var/task/mongodump)
/var/task/mongodump: /var/task/libcrypto.so.1.0.0: no version information available (required by /var/task/mongodump)