Files
xmidt/deploy/docker-compose/config_dynamodb.sh
T
Joel UnzainandGitHub 96e7b4764f Replacing SNS with Argus (#38)
* use argus for tr1d1um as webhook store

* update config that includes admin token

* save changes

* small bash file linting fixes

* consul latest works

* Remove SNS as a dep
2020-12-18 13:38:13 -08:00

16 lines
807 B
Bash
Executable File

AWS_ACCESS_KEY_ID=accessKey AWS_SECRET_ACCESS_KEY=secretKey aws dynamodb --endpoint-url http://localhost:8000 create-table \
--table-name gifnoc \
--attribute-definitions \
AttributeName=bucket,AttributeType=S \
AttributeName=uuid,AttributeType=S \
--key-schema \
AttributeName=bucket,KeyType=HASH \
AttributeName=uuid,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5 \
--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \
--region us-east-2
AWS_ACCESS_KEY_ID=accessKey AWS_SECRET_ACCESS_KEY=secretKey aws dynamodb --endpoint-url http://localhost:8000 --region us-east-2 update-time-to-live --table-name gifnoc --time-to-live-specification "Enabled=true, AttributeName=expires"