Working proof-of-concept:
- add image file to S3 input bucket ->
- automatically trigger Lambda function ->
- process image (invert colors example) ->
- save to S3 output bucket
Deploy with:
cd terraform
terraform apply
-
Python packages are simply saved to
terraform/src/package:pip install --target ./package pillow -
terraform/src/lambda.pycontains hardcodedTARGET_S3_BUCKET