From 6a061966577320c64bc3f2bcede97c81d0a8846b Mon Sep 17 00:00:00 2001 From: Kristina Pathak Date: Tue, 12 Apr 2022 14:52:30 -0700 Subject: [PATCH] an attempt --- deploy/docker-compose/deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/docker-compose/deploy.sh b/deploy/docker-compose/deploy.sh index 3686a07..6b9738b 100755 --- a/deploy/docker-compose/deploy.sh +++ b/deploy/docker-compose/deploy.sh @@ -31,10 +31,14 @@ if [[ $? -ne 0 ]]; then --table-name gifnoc \ --attribute-definitions \ AttributeName=bucket,AttributeType=S \ + AttributeName=expires,AttributeType=N \ AttributeName=id,AttributeType=S \ --key-schema \ AttributeName=bucket,KeyType=HASH \ 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 \ ReadCapacityUnits=10,WriteCapacityUnits=5 \ --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \