Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with Amazon IoT Rules with DynamoDB and Lambda

I am currently going through the "Quick Start" tutorial for Amazon IoT and I have gotten to the point where I am configuring my rules and test rules. I can see my rules in my aws console under Amazon IoT, along with my thing, cert, and policy. I am using Mosquitto like they suggest for testing it, and I can see my message when I subscribe to my topic.

But I am having an issue that, when I publish a message, I don't see anything in my DynamoDB or the CloudWatch logs from Lambda. And in IoT, I am able to create a resource and see my roles, db table, and lambda function as if it's working. I am keeping to what the tutorial is saying and nothing extra. I can't find any other forum that has discussed Amazon IoT or is having this issue.

like image 781
jacks205 Avatar asked Oct 12 '15 08:10

jacks205


People also ask

Is DynamoDB good for IoT?

DynamoDB lets you easily store and query device data so you can focus on building incredible new AWS IoT solutions.

How does DynamoDB store IoT data?

Step 1: Create the DynamoDB table for this tutorial. Step 2: Create an AWS IoT rule to send data to the DynamoDB table. Step 3: Test the AWS IoT rule and DynamoDB table. Step 4: Review the results and next steps.

Which authoring languages can be used with AWS IoT Greengrass to support AWS Lambda functions?

Q: Which Lambdas can be deployed to AWS IoT Greengrass? Any Lambda that uses the Python 2.7, 3.7, or 3.8, Node v8. 10 or v12. x, or Java 8 Lambda Runtime can be deployed to AWS IoT Greengrass Core.


1 Answers

Found the solution, it was an error in the AWS Quickstart tutorial.

Look at this thread: https://forums.aws.amazon.com/thread.jspa?threadID=217825&tstart=0

  • The range timestamp field must be of type String and not Number
  • The hashKeyValue in the json must be "${topic()}" instead of "${topic(3)}"
like image 162
jacks205 Avatar answered Sep 28 '22 04:09

jacks205