AWS IOT GreenGrass Device Shadow versioning

0

Hi AWS community:

I'm using AWS GreenGrass device shadow service to store some data, I'm interested in version history of device shadow so I could inspect data change over time, does device shadow service support such thing out of box?

An alternative I'm exploring is finding out if device shadow supports any triggers so I can call lambda to record current device shadow document. (however I haven't found any documentations about this).

Any advices are appreciated.

Thank you

Xicheng
demandé il y a 2 ans336 vues
1 réponse
1
Réponse acceptée

At this time, there's no shadow history built into the service. You would need to create the history yourself by using AWS IoT Core Rules to process shadow document changes as they are published on Device Shadow MQTT topics.

There is a Lambda rule action but it may be more cost effective to instead use the one of the other Rule actions to simply store each version of the shadow document. For instance, a DynamoDB rule action.

profile pictureAWS
EXPERT
Greg_B
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions