Edit Lambda trigger events not possible. Unable to validate the following destination configurations

0

I created my lambda function triggered by two S3 events (different prefix):

  • Event types: s3:ObjectCreated:* on Prefix: test1/sub-folder-1
  • Event types: s3:ObjectCreated:* on Prefix: test2/sub-folder-2

When I try to delete one of this trigger I receive error: "Unable to validate the following destination configurations" Attached file N.1Enter image description here

Other issue I have when I try to create a new trigger. The error occurred is: "An error occurred when creating the trigger: Unable to validate the following destination configurations" Attached file N. 2 Enter image description here

Could you please help me to understand?

luk3tt0
asked 4 months ago206 views
1 Answer
0
Accepted Answer

Hi, I've seen this behavior when any of event notifications in the S3 bucket is no longer consistent (i.e one event notification configured to a lambda function that was deleted later). As a workaround, check your bucket event notification configuration in "properties" tab of Amazon S3 web console (not your Lambda Function console). Try to identify which of those are targetting non existing resources and try to fix it (delete will not work, so point them to a valid resource, for example a Lambda function that does nothing, this is temporary, just to put it in a consistent state again). Once fixed, edit the triggers in your Lambda function you were working on initially.

AWS
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions