Set Env Variable AWS_SDK_LOAD_CONFIG
to true
so that the region is loaded from ~/.aws/config
Using Docker
docker pull amazon/dynamodb-local
docker run -p 8042:8000 amazon/dynamodb-local
Using Docker compose
docker-compose -f docker-compose-dynamodb.yaml up -d
If you've setup the AWS keys, regions etc. using aws configure
, then you can work with remote dynamodb by omitting the --endpoint-url
option.
aws dynamodb --endpoint-url http://localhost:8042 list-tables
aws dynamodb --endpoint-url http://localhost:8042 create-table --cli-input-json file://dev_data.json
aws dynamodb get-item --endpoint-url http://localhost:8042 --table-name dev_data --key '{"emailId": {"S": "[email protected]"}}'
aws dynamodb put-item --endpoint-url http://localhost:8042 --table-name dev_data --item '{"emailId": {"S": "[email protected]"}}'
This repository is released under the MIT license. In short, this means you are free to use this software in any personal, open-source or commercial projects. Attribution is optional but appreciated.