Guest User

Untitled

a guest
Dec 13th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. aws dynamodb create-table --table-name test_table --attribute-definitions AttributeName=time_stamp,AttributeType=N AttributeName=watch_uuid,AttributeType=S --key-schema AttributeName=watch_uuid,KeyType=HASH AttributeName=time_stamp,KeyType=RANGE --billing-mode PROVISIONED --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1
  2.  
  3. aws dynamodb batch-write-item --request-items file://items.json.1.batch.write.txt
  4.  
  5. {
  6. "test_table": [
  7. {
  8. "PutRequest": {
  9. "Item": {
  10. "owner_name": {
  11. "S": "Test watch 3"
  12. },
  13. "time_stamp": {
  14. "N": "1541524533453"
  15. },
  16. "watch_uuid": {
  17. "S": "A9A0E8B2-CD8D-464A-8787-383A85919A06_1541524533453_Test watch 3"
  18. },
  19. "y_user_accel": {
  20. "S": "0.07286"
  21. }
  22. }
  23. },
  24. "PutRequest": {
  25. "Item": {
  26. "owner_name": {
  27. "S": "Test watch 4"
  28. },
  29. "time_stamp": {
  30. "N": "1541524533765"
  31. },
  32. "watch_uuid": {
  33. "S": "A9A0E8B2-CD8D-464A-8787-383A85919A06_1541524533453_Test watch 4"
  34. },
  35. "y_user_accel": {
  36. "S": "0.07286"
  37. }
  38. }
  39. }
  40. }
  41. ]
  42. }
Add Comment
Please, Sign In to add comment