Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda : creating the trigger

Tags:

aws-lambda

When I try to add the trigger, I get the following error:

"There was an error creating the trigger: Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type."

I'm not sure what's gone wrong here.

like image 994
Gouri Mahapatra Avatar asked Sep 08 '17 04:09

Gouri Mahapatra


2 Answers

One reason could be that some other lambda function previously using the same trigger was deleted. This does not automatically clear the event notification from the S3 side. You have to navigate to the S3 console and manually delete the stale event notifications. Once that is done, you should be able to create the same trigger again for another lambda function.

like image 109
Vijayanath Viswanathan Avatar answered Oct 17 '22 13:10

Vijayanath Viswanathan


  1. Navigate to S3 and click on the name of your bucket.

  2. Click on the “Properties” tab.

  3. Scroll down to the Advanced properties and on the events section you should see 1 or more active notifications.

  4. Click on the square to edit notifications and delete the notification that is still listening to your lambda function in error.

Congrats, no more dangling reference!

like image 24
anilam Avatar answered Oct 17 '22 13:10

anilam