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
preguntada hace 5 meses215 visualizaciones
1 Respuesta
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
respondido hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas