October 14, 2018
AWS Lambda is a compute service that runs your code in response to events and automatically manages the compute resources for you, making it easy to build applications that respond quickly to new information. This lab creates a Lambda function to handle S3 image uploads by resizing them to thumbnails and storing the thumbnails in another S3 bucket.
On the Services menu, select Lambda
Create function and configure
This role grants permission to the Lambda function to read and write images in S3
Finish the rest of configuration by providing the url of the zipped Python script, which handles upload event, creates thumbnail in output bucket
Click Test button and configure
Modify the template
Save and run
If success, the thumbnail image could be found in output bucket
Monitoring tab displays graphs showing:
Written by Warren who studies distributed systems at George Washington University. You might wanna follow him on Github