Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a DynamoDB table from json

I was wondering if its possible to create a dynamodb table from the table definition json itself? I've looked into the aws cli tool and I couldnt find any way of doing this. Just wondering if it's possible.

aws dynamodb create-table file://tabledenifision.json

Thanks!

like image 962
webber Avatar asked Aug 15 '14 21:08

webber


1 Answers

I found your unanswered question today, and kept looking until I found an answer. Probably too late for you but may help others.

aws dynamodb create-table --cli-input-json file://tabledefinition.json

This command expects a json object in the file in the format outlined by the following command:

aws dynamodb create-table --generate-cli-skeleton

This approach seems to work with many aws commands.

like image 186
Keith Branton Avatar answered Oct 18 '22 20:10

Keith Branton