-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 678 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 678 Bytes
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
AWS_ENDPOINT=http://localhost:8000
AWS_REGION=us-east-2
db-tables:
@echo "Creating DynamoDB table..."
aws dynamodb create-table \
--endpoint-url ${AWS_ENDPOINT} \
--region ${AWS_REGION} \
--table-name GameScores \
--key-schema \
AttributeName=Id,KeyType=HASH \
--attribute-definitions \
AttributeName=Id,AttributeType=S \
--provisioned-throughput \
ReadCapacityUnits=5,WriteCapacityUnits=5
@echo "Creating DynamoDB table complete."
db-drop:
@echo "Deleting DynamoDB table..."
aws dynamodb delete-table \
--endpoint-url ${AWS_ENDPOINT} \
--region ${AWS_REGION} \
--table-name GameScores
@echo "Deleting DynamoDB table complete."