Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impors with binary crypto dependencies fail #9

Open
alytle opened this issue Dec 13, 2018 · 3 comments
Open

Impors with binary crypto dependencies fail #9

alytle opened this issue Dec 13, 2018 · 3 comments

Comments

@alytle
Copy link

alytle commented Dec 13, 2018

I built a Lambda which used pysftp, which uses the cryptography library. Since I built it on my Mac, I get errors about ELF versions when it tries to load the .so in the Lambda.

I used https://medium.com/i-like-big-data-and-i-cannot-lie/how-to-create-an-aws-lambda-python-3-6-deployment-package-using-docker-d0e847207dd6 to get around this, which I feel like we could add to the workflow to build the package (optionally?).

Note that this procedure has an error (It recommends zip * instead of zip .), which if you do that results in this error: https://github.com/snowflakedb/examples/issues/4

@dgomesbr
Copy link

Hey @alytle, with the announcement of layers, this is a great candidate to serve as a layer for lambda to get that.

@alytle
Copy link
Author

alytle commented Dec 13, 2018

Yeah, I thought about that. I'm not sure how we would implement that in this current model though. We wouldn't always want our dependencies in a Layer? Or maybe that's not such a bad idea. Create a Layer with all libraries and the Lambda code is just our handler?

@dliggat
Copy link
Owner

dliggat commented Dec 15, 2018

Will explore the layers option for this... initially inclined towards that pathway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants