Creating dynamo db tables in local host using json file
@wolfson thank you for your suggestion after working some time removing these stuff from the schema helped me to create a table anyway. I removed
1)"Table": { "TableArn": "arn:aws:dynamodb:us-west-2:xxxx:table/admin",2)"NumberOfDecreasesToday": 0,3), "ItemCount": 0, "CreationDateTime": 1403367027.739 }4)"TableSizeBytes": 0,5) "TableStatus": "ACTIVE", "TableId": "fd21aaab-52fe-4f86-aba6-1cc9a7b17417",
The resultant json is like but i forced to do this for all the tables and made me to do the create table operation n number of tables.
{ "AttributeDefinitions": [ { "AttributeName": "userid", "AttributeType": "S" } ], "ProvisionedThroughput": { "WriteCapacityUnits": 1, "ReadCapacityUnits": 1 }, "TableName": "admin", "KeySchema": [ { "KeyType": "HASH", "AttributeName": "userid" } ] }
Thank you anyway.
I was able to create the table locally in DynamoDB by removing this completely:
"BillingModeSummary": { "BillingMode": "PROVISIONED", "LastUpdateToPayPerRequestDateTime": 0 }
Once the table got created I looked at the table meta information, strangely it contains this:
"BillingModeSummary": { "BillingMode": "PROVISIONED", "LastUpdateToPayPerRequestDateTime": "1970-01-01T00:00:00.000Z" }
I went back and tried to create table using the format as shown above. However it failed. Bottomline just remove "BillingModeSummary"
and voila the table got created! :-)