A lambda function that resizes images on the fly using Sharp library and TypeScript as a language. The lambda function is triggered by CloudFront origin request and it resizes the image based on the query string parameters.
https://d1go0ly5q5m3ux.cloudfront.net/resized/800x800/original.jpg