-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #348 from hearchco/as/feat/dynamodb
feat(cache): dynamodb
- Loading branch information
Showing
13 changed files
with
503 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/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 | ||
|
||
docker run --rm --name hearchco-dynamodb -d -p 8000:8000 docker.io/amazon/dynamodb-local && \ | ||
sleep 5 && \ | ||
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 | ||
|
||
docker stop hearchco-dynamodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/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 | ||
|
||
podman run --rm --name hearchco-dynamodb -d -p 8000:8000 docker.io/amazon/dynamodb-local && \ | ||
sleep 5 && \ | ||
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 | ||
|
||
podman stop hearchco-dynamodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
go test $(go list ./... | grep /dynamodb) -count=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/usr/bin/env bash | ||
go test $(go list ./... | grep -v /engines/ | grep -v /redis) | ||
go test $(go list ./... | grep -v /engines/ | grep -v /redis | grep -v /dynamodb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.