File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ aws dynamodb put-item \
4
+ --table-name items \
5
+ --item ' {
6
+ "id": {"S": "' $( uuidgen 2> /dev/null || echo " default-id-1" ) ' "},
7
+ "name": {"S": "Premium Service Package"},
8
+ "description": {"S": "A comprehensive package offering premium services including dedicated support and priority access."},
9
+ "createdAt": {"S": "' $( date -u +" %Y-%m-%dT%H:%M:%SZ" ) ' "}
10
+ }' \
11
+ --endpoint-url http://localhost:4566
12
+
13
+ aws dynamodb put-item \
14
+ --table-name items \
15
+ --item ' {
16
+ "id": {"S": "' $( uuidgen 2> /dev/null || echo " default-id-2" ) ' "},
17
+ "name": {"S": "Standard Service Package"},
18
+ "description": {"S": "A standard package providing essential services with regular support."},
19
+ "createdAt": {"S": "' $( date -u +" %Y-%m-%dT%H:%M:%SZ" ) ' "}
20
+ }' \
21
+ --endpoint-url http://localhost:4566
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ aws dynamodb create-table \
4
+ --table-name items \
5
+ --key-schema AttributeName=id,KeyType=HASH \
6
+ --attribute-definitions \
7
+ AttributeName=id,AttributeType=S \
8
+ --billing-mode PAY_PER_REQUEST \
9
+ --endpoint-url http://localhost:4566
You can’t perform that action at this time.
0 commit comments