This Docker application exports data from Amazon DynamoDB to Keboola.
A sample configuration and its description can be found here.
After a successful extraction, several CSV files containing exported data will be generated.
- The first output file is named after the
name
parameter in the export configuration. - Additional files are named according to the destination parameter in the mapping section.
A manifest file is also created for each export.
Requirements:
- Docker Engine:
~1.12
- Docker Compose:
~1.8
This application is designed to run in a Docker container. To start development, follow these steps:
- Clone this repository:
git clone git@github.com:keboola/dynamodb-extractor.git
- Navigate to the project directory:
cd dynamodb-extractor
- Build services:
docker compose build
- Run tests:
docker compose run --rm app composer ci
Once all tests pass successfully, continue with:
- Run the service:
docker compose run --rm app bash
- Create tables/indexes and load sample data:
php tests/fixtures/init.php
- Write tests and develop the required code.
- Run tests:
composer tests
To simulate a real run:
- Create a data directory:
mkdir -p data
- Follow the configuration sample and create a
config.json
file in the data directory (data/config.json
). - Simulate a real run using the entrypoint command:
php ./src/app.php run ./data
This project is MIT licensed. See the LICENSE file for details.