Writing IOT Data to S3

0

So am receiving data via IOT core. Applying a rule to route the data to S3.

You can see the it "last modified" update but when I look for entries it is empty?

CloudWatch is giving me the following: {"timestamp":"2022-02-07 02:04:46.802","logLevel":"INFO",].....","status":"Success","eventType":"RuleExecution","clientId":"MKR1010","topicName":"MKR1010/pub","ruleName":"mkr1010tos3","ruleAction":"S3Action","resources":{"Bucket":"mkr1010s3","Key":"mkr1010"},"principalId":"2b035d1e541ac061be9a5498254aff0e21c771b2a96e470a7b2a287fc6f34b59"}

Not quite sure why.

When I change to rule to send it to a dynamoDB...then the data is being stored as expected.

I know that S3 is not the best way to do this but I would like to know what is missing when the CloudWatch logs show successful execution??

Thanks

  • so iot core is receiving data via a topic and you save the date into an S3 file ? streaming or a different file for each bit of data ?

1 Answer
0

For anyone who else might face an issue where they create a rule with the action to store a message to S3 make sure you check the following:

  1. Check the "MQTT test client" to make sure that your messages are coming into the desired topic
  2. Make sure that your rule is using an IAM role that has the necessary permissions to put objects into your specified bucket
  3. Also make sure that the region of your S3 bucket is the same as your IoT Core region
John
answered 10 months ago

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.

Guidelines for Answering Questions