Skip to content

How to use pyminizip with lambda?

0

I created a layer and installed pyminizip to that layer. I still can't import the module. It just refuses.

I've downloaded the layer and it looks correct.

I'm also having issues with trying to build the layer from m1, I had to switch my lambda over to arm. Is there any way around that?

asked 2 years ago624 views
1 Answer
0

Lambda layers sometimes do not import well due to OS dependencies.
So, it may work well if the OS on which the layers are created is Amazon Linux or Amazon Linux2.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-compile
Use Pyenv or similar to match Python versions.

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.