Exploring Lambda and event mapping
We have already seen and learned a bit about how Lambda uses a notion called event mapping to map a particular AWS service to a corresponding Lambda function. In this section, we will be diving a bit further into event mapping with the help of some interesting real world use cases that most of you would find useful in your own AWS environments.
Mapping Lambda with S3
You can easily write and invoke Lambda functions for processing objects stored in an S3 bucket. The functions can be triggered using a set of notification configurations which trigger a corresponding Lambda function into action. The following is a list of few such notification configurations that can be used for triggering functions on S3 buckets:
- When an object is created in a bucket using either
put
,post
,copy
or acompletemultipartupload
operation - When an object is deleted from a bucket using the
delete
operation - When a bucket set with
ReducedRedundancy
storage option loses an object
How does...