Skip to Content
Learn AWS Serverless Computing
book

Learn AWS Serverless Computing

by Scott Patterson
December 2019
Intermediate to advanced
382 pages
9h 43m
English
Packt Publishing
Content preview from Learn AWS Serverless Computing

S3 as an event source

In a previous chapter, we talked about the types of invocation for Lambda functions and how other services in the AWS ecosystem can trigger a function to be executed. Now, it's time to learn a little more about how this applies to S3 and see how we can create one ourselves.

The example in this section and the next is a trivial exercise to show that we can enable some processing to happen when an object is uploaded to a bucket in S3. Setting the scene, let's say we have users who are uploading photos into an S3 bucket. We want to classify these photos and move them into another location within the bucket. We also want to extract and store the metadata of the photo, such as the EXIF and a timestamp. Storing this data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Sunil Gulabani

Publisher Resources

ISBN: 9781789958355