I am Publishing data from Raspberry Pi to AWS IoT and I can see the updates there. 
Now, I need to get that data into AWS Lambda and connect it to AWS SNS to send a message above a threshold. I know about working with SNS and IoT.
I just want to know that how I can get the data from AWS IoT to AWS Lambda ?? 
Please Help !!
Thanks :)
In IoT Code, Create a rule for invoking a Lambda to accept JSON data. Then you can do anything with that data.
Stream data from AWS IoT to AWS Lambda using Python?