Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- aws dynamodb batch-write-item --request-items file://items.json.1.batch.write.txt
- {
- "test_table": [
- {
- "PutRequest": {
- "Item": {
- "owner_name": {
- "S": "Test watch 3"
- },
- "time_stamp": {
- "N": "1541524533453"
- },
- "watch_uuid": {
- "S": "A9A0E8B2-CD8D-464A-8787-383A85919A06_1541524533453_Test watch 3"
- },
- "y_user_accel": {
- "S": "0.07286"
- }
- }
- },
- "PutRequest": {
- "Item": {
- "owner_name": {
- "S": "Test watch 4"
- },
- "time_stamp": {
- "N": "1541524533765"
- },
- "watch_uuid": {
- "S": "A9A0E8B2-CD8D-464A-8787-383A85919A06_1541524533453_Test watch 4"
- },
- "y_user_accel": {
- "S": "0.07286"
- }
- }
- }
- }
- ]
- }
Add Comment
Please, Sign In to add comment