MQTT to Dynamo DB

0

We have a Thing that is receiving data from and ESP32, we then want to send that data to Dynamo DB.

We've created a table, rules and policies that all worked for about 3 days and then stopped. Every now and then it works for an item or two, but very rarely. We've checked through all the policies and rules and table settings, comparing to online tutorials, but nothing has helped.

We have also created a whole new ESP -> MQTT -> Dynamo Thing set and that doesn't work at all.

We can connect, send and receive through the MQTT as well as send the data to S3.

Has anyone else experienced this, and/or knows what we should be looking at next

  • Can you share more information? The DynamoDB table schema, the rule etc??

  • Did you enabled logging for AWS IoT Core? When the rule execution fails, you should be able to find the reason in the CloudWatch logs.

Pete
質問済み 5ヶ月前215ビュー
1回答
0

Aha! Turns out we were overloading the IAM role 'device-dynamodb' with too many policies (max 10 per role).

We've gotten a better understanding of roles and policies, and editing the "Resource" JSON in policies to organise everything.

We've created new tables and better naming conventions for everything and all seems to be working (6 hours run so far and all good).

I'll update this thread with results when possible (if all goes well over the weekend, I'll consider it all a success).

Pete
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ