I want to use an AWS IoT Rule to trigger a specific lambda based on the value of a attribute of the incoming messages. It seems like the problem is because of a hyphen that is contained in the attribute name.
My message looks like this:
{
"testdata": "abc",
"test-data": "abc"
}
If I trigger a lambda by the following AWS IoT SQL it works:
select * from 'my/test' Where startswith(testdata, 'abc')
But it doesn't work if I use this SQL:
select * from 'my/test' Where startswith(test-data, 'abc')
Is it possible to escape the hyphen or is there another way to use attribute names with a hyphen?