I have a filter for a SNS subscription (SQS) where I'm using this filtering:
{"source":[{"anything-but":"SOME_STRING"}]}
This works OK, except that sometimes I have messages going to the SNS that doesn't have any message-attribute called source, and before using the filter, this subscription without filter was taking it.
So, in conclusion, I would like to find a way where my filter takes the message if it doesn't have this "source" attribute or in case it have it, it should be anything-but SOME_STRING.
Thank you!