User Tools

Site Tools


iot:tutorial:aws-integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
iot:tutorial:aws-integration [2020/07/07 13:25] – Unfinished DDB, Lambda atolstoviot:tutorial:aws-integration [2021/07/22 07:32] (current) – ↷ Links adapted because of a move operation atolstov
Line 238: Line 238:
 ==== JSON formatted payload ==== ==== JSON formatted payload ====
 It is widely used MQTT payload format JSON. It is widely used MQTT payload format JSON.
-Let’s write a small script which will use inbuild [[:lua_cjson|cjson]] library to encode any WebHMI register values to JSON formatted strings.+Let’s write a small script which will use inbuild [[lua:lua_cjson|cjson]] library to encode any WebHMI register values to JSON formatted strings.
 Here is the code example to encode a string type message with Amazon Web Services (AWS) [[https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-document-syntax.html|Thing Report Shadow]] JSON format. Here is the code example to encode a string type message with Amazon Web Services (AWS) [[https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-document-syntax.html|Thing Report Shadow]] JSON format.
  
Line 420: Line 420:
 Append to DDB should triggers that new Lambda function, which will repost the data to ElasticSearch instance. To check it, just go to Kibana and click search button. If there is no data in one minute after posting from WH, so something get wrong. The more likely with IAM. There is a CloudWatch logs to investigate problem. Append to DDB should triggers that new Lambda function, which will repost the data to ElasticSearch instance. To check it, just go to Kibana and click search button. If there is no data in one minute after posting from WH, so something get wrong. The more likely with IAM. There is a CloudWatch logs to investigate problem.
  
-<del> 
-__0) formulate the payload in JSON and clarify the DDBv2 rule__ 
-1) Create Lambda function, set up destinations, triggers 
  
-2) test function successfully. 
- 
-3)check Kibana metric created. 
- 
-4) Work with Kibana (demo visualisation)</del> 
  
  
  
  
iot/tutorial/aws-integration.1594128302.txt.gz · Last modified: 2020/07/07 13:25 by atolstov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki