Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cache): dynamodb #348

Merged
merged 9 commits into from
Jul 10, 2024
Prev Previous commit
chore(scripts): remove aws tables from dynamodb.sh
aleksasiriski committed Jul 10, 2024
commit da42afef06dc98584439342d67a09e93bfa8b84c
17 changes: 0 additions & 17 deletions scripts/test-dynamodb.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
#!/usr/bin/env bash

export AWS_REGION=hearchco-test-1
export AWS_ACCESS_KEY_ID=hearchco
export AWS_SECRET_ACCESS_KEY=hearchco
export DYNAMODB_TABLE=hearchco_test
export DYNAMODB_ENDPOINT=http://localhost:8000

aws dynamodb create-table \
--table-name $DYNAMODB_TABLE \
--attribute-definitions AttributeName=Key,AttributeType=S \
--key-schema AttributeName=Key,KeyType=HASH \
--billing-mode PAY_PER_REQUEST \
--endpoint-url $DYNAMODB_ENDPOINT && \
aws dynamodb update-time-to-live \
--table-name $DYNAMODB_TABLE \
--time-to-live-specification "Enabled=true, AttributeName=TTL" \
--endpoint-url $DYNAMODB_ENDPOINT && \
go test $(go list ./... | grep /dynamodb) -count=1