1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
This is a good post of how to build a lambda layer.. The main thing is that your libraries in the ZIP file need to be in the correct folder structure otherwise it will not import them
https://medium.com/brlink/how-to-create-a-python-layer-in-aws-lambda-287235215b79
The correct folder structure for libraries/modules are here:- https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html#packaging-layers-paths
Example file structure for the Python Pillow library
pillow.zip
│ python/PIL
└ python/Pillow-5.3.0.dist-info
Contenus pertinents
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
Just another thought. Compressing and descaling video is extremely CPU intensive. You may find that considering a service such as Elemental Media Convert gives you better performance and cost/second of video - than doing compression in Lambda.