Getting PIL/Pillow 4.2.1 to upload properly to AWS Lambda Py3.6

后端 未结 3 678
温柔的废话
温柔的废话 2021-02-19 04:03

Background

I have been struggling for the past few days to deploy a Lambda that uses Pillow, and I am deploying using Python 3.6. It may be noteworthy a

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 04:47

    For anyone else also new to aws python and running into this issue, you can use the layers feature, and there are existing layers here you can link to and this worked for me.

    https://github.com/keithrozario/Klayers

    Pillow specifically on us-east-1:

    arn:aws:lambda:us-east-1:770693421928:layer:Klayers-python38-Pillow:2

提交回复
热议问题