# Writing Putitem to AWS Dynomodb

**URL:** <https://discourse.nodered.org/t/writing-putitem-to-aws-dynomodb/39251>\
**Category:** General\
**Created:** [17 January 2021 07:23 UTC](https://discourse.nodered.org/t/writing-putitem-to-aws-dynomodb/39251 "2021-01-17T07:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [17 January 2021 07:23 UTC](https://discourse.nodered.org/t/writing-putitem-to-aws-dynomodb/39251/1 "2021-01-17T07:23:52Z")

</div>

Hi,

I am looking for help on AWS Dynomodb Putitem in to the DB.

Do someone have a example please.

Thank you

```auto
[{"id":"1a4d0477.d34c0c","type":"AWS DynamoDB","z":"e688ba86.12a628","aws":"a4b5e3bd.dd33f","operation":"PutItem","RequestItems":"","TableName":"SO_Tracking_gps","BackupName":"","GlobalTableName":"","ReplicationGroup":"","AttributeDefinitions":"","KeySchema":"","ProvisionedThroughput":"","BackupArn":"","Key":"","ResourceArn":"","Item":"dev_id","TargetTableName":"","SourceTableName":"","Tags":"","TagKeys":"","PointInTimeRecoverySpecification":"","ReplicaUpdates":"","TimeToLiveSpecification":"","name":"","x":750,"y":560,"wires":[[],[]]},{"id":"c12ab177.e6c3b","type":"inject","z":"e688ba86.12a628","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":560,"wires":[["6213984b.1c2258"]]},{"id":"6213984b.1c2258","type":"function","z":"e688ba86.12a628","name":"","func":"var app_id = \"sotracking\";\nvar dev_id = \"oyster_445\";\n\n\nvar date = Math.round(+new Date());\nvar counter = 15;\nvar alt = 619;\nvar hdop = 0.01;\n//var headingDeg = msg.payload.headingDeg;\nvar latitude = -29.808182;\nvar longitude = 30.784950;\nvar speed = 178;\n\nmsg.payload = {\n TableName: \"SO_Tracking_gps\",\n Item: {\n \"date\": date,\n \"counter\": counter,\n \"alt\": alt,\n \"hdop\": hdop,\n \"latitude\": latitude,\n \"longitude\": longitude,\n \"speed\": speed,\n \"app_id\": app_id,\n \"dev_id\": dev_id\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":560,"wires":[["4ccd812a.8a238"]]},{"id":"bcc11160.572c9","type":"debug","z":"e688ba86.12a628","name":"uplink","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":610,"y":620,"wires":[]},{"id":"4ccd812a.8a238","type":"json","z":"e688ba86.12a628","name":"","property":"payload","action":"","pretty":false,"x":510,"y":560,"wires":[["1a4d0477.d34c0c","bcc11160.572c9"]]},{"id":"a4b5e3bd.dd33f","type":"amazon config","z":"","name":"AWS","region":"eu-west-1","proxyRequired":false,"proxy":""}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 March 2021 07:23 UTC](https://discourse.nodered.org/t/writing-putitem-to-aws-dynomodb/39251/2 "2021-03-18T07:23:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
