-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.txt
34 lines (28 loc) · 1.14 KB
/
cli.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
aws dynamodb create-table ^
--table-name ProductCatalog ^
--attribute-definitions ^
AttributeName=Id,AttributeType=N ^
--key-schema ^
AttributeName=Id,KeyType=HASH ^
--provisioned-throughput ^
ReadCapacityUnits=10,WriteCapacityUnits=10 ^
--endpoint-url http://localhost:8000
aws dynamodb list-tables --endpoint-url http://localhost:8000
aws dynamodb describe-table --table-name ProductCatalog --endpoint-url http://localhost:8000
aws dynamodb batch-write-item --request-items file://ProductCatalog.json --endpoint-url http://localhost:8000
aws dynamodb get-item ^
--table-name ProductCatalog ^
--key "{""Id"":{""N"":""102""}}" ^
--projection-expression "Title, Price, ProductCategory" ^
--endpoint-url http://localhost:8000 ^
--output text
aws dynamodb scan ^
--table-name ProductCatalog ^
--endpoint-url http://localhost:8000 ^
--output table
aws dynamodb scan ^
--table-name ProductCatalog ^
--filter-expression "ProductCategory = :type" ^
--expression-attribute-values "{"":type"":{""S"":""Book""}}" ^
--endpoint-url http://localhost:8000 ^
--output text