Lambda image resizer

Job ID: 34977069

Budget: $10 – $30 USD

Create a lambda function with serverless or Sam
On Python 3.9 or nodejs 14 or 16
And work with Aws cloudfront, s3 bucket non public,, following the best practices.
This lambda is for image resizer needs to have for example:
1. process the incoming request with query string and covert it to request to URI like "/200x200/webp/image01.png"
2. in the code, send S3 GetObject API call to fetch the object
3. If the response is 404, try to build the image file and upload it to the bucket
4. return the new object response to viewer.

This is just a high level structure