January 2019
Intermediate to advanced
490 pages
15h 37m
English
aws dynamodb create-table \--table-name my_table \--attribute-definitions 'AttributeName=id, AttributeType=S' 'AttributeName=datetime, AttributeType=N' \--key-schema 'AttributeName=id, KeyType=HASH' 'AttributeName=datetime, KeyType=RANGE' \--provisioned-throughput 'ReadCapacityUnits=5, WriteCapacityUnits=5' \--region us-east-1 \--profile admin
Here, we define a table named my_table and use the attribute-definitions property to add two fields: id of type string (denoted by S) and datetime of type number (denoted by N). We then define a partition key (or hash key) and a sort key (or range key) using the key-schema ...
Read now
Unlock full access