Database Reference
In-Depth Information
We will now see one of the simplest of the DynamoDB commands: table creation. We are
going to create the same table we created using the management console (but without sec-
ondary indexes), with the help of the following command:
aws dynamodb create-table --table-name Tbl_Book
--attribute-definitions
AttributeName=BookTitle,AttributeType=S
AttributeName=Author,AttributeType=S --key-schema
AttributeName=BookTitle,KeyType=HASH
AttributeName=Author,KeyType=RANGE
--provisioned-throughput
ReadCapacityUnits=2,WriteCapacityUnits=2
Once you provide the command to create a table, you can find the JSON table that will
give information about the table creation.
Search WWH ::




Custom Search