The requests don’t work in the raw environment, so you need to put them in or rewrite them without using them. $ pip3 install requests --target .

Returning binary data like the image from Lambda requires doing a lot of additional work.


This page is auto-translated from [/nishio/AWS Lambdaで画像プロキシを動かす](https://scrapbox.io/nishio/AWS Lambdaで画像プロキシを動かす) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.