Skip to content

Commit 6e3535b

Browse files
Add aws scripts bash
1 parent 9f25796 commit 6e3535b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

0 commit comments

Comments
 (0)