From the course: Monitoring AWS with CloudWatch (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Trigger Lambda functions using events

Solution: Trigger Lambda functions using events - Amazon Web Services (AWS) Tutorial

From the course: Monitoring AWS with CloudWatch (2020)

Start my 1-month free trial

Solution: Trigger Lambda functions using events

(upbeat music) - (Lecturer) To solve this challenge, first, I started by creating a new rule. In the service name, I specify S3 and for the event type, I chose object level operations, which gives me file operation details. Next, on the operations, I chose specific operations, and then from the list of specific operations, I chose to delete object operation which sends event when an object is deleted. And finally, I used a specific bucket name rather than any bucket and specify the bucket name here. Next, I proceeded to add a new target. From the services list, I chose Lambda function, and then I chose the Lambda function that I wanted to execute from a list of functions. And finally on the configure rule page, I gave my rule a name, and made sure that the state was in the enabled state and created the rule.

Contents