From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Exploring events

Exploring events

- Recall that use case example where a user takes a photo with their phone that gets put into S3 that invokes a lambda function, the photo gets resized and put into another bucket. Let's take a look at how you could accomplish that particular task. Here in Northern Virginia, I have no lambda functions defined, and we are going to interact with our existing bucket, mylittlebucket-nova that exists in Northern Virginia. If we look at the properties for this bucket and scroll down slightly, we can see here in Event notifications, there are zero event notifications. The event notifications are what would trigger a lambda function to occur. If I click on Create event notification, we can specify the event name, suffix, JPEG, and what this means is that when the event triggers, it's going to filter based on whatever you specify here. If you say prefix, then the prefix has to match. If you specify suffix, then suffix has to match. In the example of taking a photo with your phone, if it…

Contents