Skip to content

[BUG REPORT] Disappearing Lambda triggers

0

Came across the following scenario:

  1. There is a Lambda function that should be invoked when a particular term appears in a CloudWatch Logs log group.

Enter image description here This works.

  1. Extend the filter pattern so that it should now trigger on either of two terms, but there's a syntax error in the new filter pattern.

Enter image description here

  1. Go away and read the docs, figure out what it should be, and amend it to be correct. But on clicking Save the error The specified subscription filter does not exist is displayed.

Enter image description here

  1. So click on Cancel and expect things to be back as-you-were in step 1 above. But instead the trigger has gone.

Enter image description here

Expected behaviour is that the original, working trigger from step 1 will still exist. At no point during the above does the user signal an intention that the original trigger should be deleted.

Also note that if Cancel had been clicked after step 2, the same outcome would have been seen (the trigger disappearing) whether or not an attempt was made to fix things in step 3.

Obviously the example above is trivial, and in this particular case it's easy to recreate the trigger with the correct syntax in the filter. In the real world the filters are going to be much more complicated and take more effort to work out. And it's frustrating when all this work is lost.

1 Answer
0

Hi, The filter pattern supports this format.

Filter pattern: [ERROR, WARNING]

answered 2 years ago
  • Thanks, but I know what the correct filter format is.

    I am deliberately using an over-simple example to illustrate (what I think is) a bug - that a syntax error in the filter pattern causes the entire trigger to be deleted.

    The filter pattern that I was actually working with when i discovered this "bug" is a mess of curly-brackets, round brackets, dollar signs and boolean logic. Which is not the easiest thing to understand, hence going for a really over-simple example here.

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.