an attempt

This commit is contained in:
Kristina Pathak
2022-04-12 14:52:30 -07:00
parent 8fa9345df5
commit 6a06196657
+4
View File
@@ -31,10 +31,14 @@ if [[ $? -ne 0 ]]; then
--table-name gifnoc \ --table-name gifnoc \
--attribute-definitions \ --attribute-definitions \
AttributeName=bucket,AttributeType=S \ AttributeName=bucket,AttributeType=S \
AttributeName=expires,AttributeType=N \
AttributeName=id,AttributeType=S \ AttributeName=id,AttributeType=S \
--key-schema \ --key-schema \
AttributeName=bucket,KeyType=HASH \ AttributeName=bucket,KeyType=HASH \
AttributeName=id,KeyType=RANGE \ AttributeName=id,KeyType=RANGE \
--global-secondary-indexes \
"[{\"IndexName\": \"Expires-index\",\"KeySchema\":[{\"AttributeName\":\"bucket\",\"KeyType\":\"HASH\"}, {\"AttributeName\":\"expires\",\"KeyType\":\"RANGE\"}], \
\"ProvisionedThroughput\": {\"ReadCapacityUnits\": 10, \"WriteCapacityUnits\": 5 },\"Projection\":{\"ProjectionType\":\"ALL\"}}]" \
--provisioned-throughput \ --provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5 \ ReadCapacityUnits=10,WriteCapacityUnits=5 \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \ --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \