Releases: matsimitsu/lambda-image-resize-rust
Releases · matsimitsu/lambda-image-resize-rust
First release
The first version of lambda-image-resize-rust
. An AWS Lambda function that listens to S3 events and generates resized image versions after uploads.
Configure
This binary relies on two env vars:
SIZES
, an array if sizes (export SIZES=200,300,400
)REPLACEMENTS
, an array of replacements for the path (export REPLACEMENTS="original:resized"
)
Use
Upload bootstrap.zip to AWS lambda and configure the function to listen to all S3 upload events, make sure to set the REPLACMENTS
path env var, to prevent recursive resizes.
Ensure that the function has read/write access to S3 and cloudwatch for the logs.