API Endpoints to work with DynamoDB Visualizer
🚧 Stability: EXPERIMENTAL
Use this host with caution, data may be lost any time.
https://dynamodb-explorer.bemit.codes
There are 3 prebuild Docker images:
- bemiteu/dynamodb-explorer, ready to use image to try out and run locally
- bemiteu/dynamodb-explorer-api, only the php-fpm container to use with external nginx
- bemiteu/dynamodb-explorer-worker, a preconfigured queue worker container and for CLI stuff
docker run -it --rm -p 3333:80 \
-e CORS_ORIGINS=http://localhost:3000 \
-e APP_SALT=somesalt \
-e AUTH_ISSUER=example.com \
-e AUTH_SECRET=min12@igns!LONG \
-e DYNAMO_DB_KEY=aws_api_key \
-e DYNAMO_DB_SECRET=aws_api_secret \
bemiteu/dynamodb-explorer- env vars
EXPLORER_NAMEAPP_SALTAUTH_ISSUERAUTH_SECRETAUTH_EXPIRE, defaults to3600, how long an auth token is valid, in secondsDYNAMO_DB_KEYDYNAMO_DB_SECRETDYNAMO_DB_ENDPOINT=http://127.0.0.1:8001, for usage with e.g. own public scylla endpoint, not needed for AWSCORS_ORIGINS, comma separated list of CORS allowed domains, already configured for dynamodb-visualizer.bemit.codes
Create the needed table with a temporary worker:
docker run -ti --rm \
-e CORS_ORIGINS=http://localhost:3000 \
-e APP_SALT=somesalt \
-e AUTH_ISSUER=example.com \
-e AUTH_SECRET=min12@igns!LONG \
-e DYNAMO_DB_KEY=aws_api_key \
-e DYNAMO_DB_SECRET=aws_api_secret \
bemiteu/dynamodb-explorer-worker sh -c "php cli dynamo:create dyn_explorer"
# or for custom name:
php cli dynamo:create dyn_explorer your_table_nameUse these exports to explore the used table in the visualizer
dynamo-dump--dyn_explorer--schema.json, add asTable Schemadynamo-dump--dyn_explorer--data.json, add asExample Data
This repository contains all backend files, using orbiter/satellite.
Install after clone:
cd dynamodb-explorer
# run extra composer container on windows:
docker run -it --rm -v %cd%:/app composer install
# run extra composer container on unix:
docker run -it --rm -v `pwd`:/app composer install .
# create .env, can be empty
touch .envdocker-compose upCheck PHP CLI:
docker-compose run --rm worker php cli -h# start persisting container for a bit faster runs:
docker-compose run --rm worker sh
php cli dynamo:create dyn_explorer
# or for custom name:
php cli dynamo:create dyn_explorer your_table_name
# where as `delete` takes any existing table name:
php cli dynamo:delete dyn_explorer
php cli dynamo:delete your_table_name
docker-compose run --rm worker sh -c "cd /var/www && wget -O phpunit https://phar.phpunit.de/phpunit-9.phar && chmod +x phpunit && cd html && /var/www/phpunit --testdox tests"This project is free software distributed under the MIT License.
Amazon DynamoDB® is a trademark of Amazon.com, Inc. No endorsements by Amazon.com, Inc. are implied by the use of these marks.
By committing your code to the code repository you agree to release the code under the MIT License attached to the repository.
Maintained by Michael Becker