Skip to content
This repository was archived by the owner on Jun 18, 2020. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

readme.md

Data Pipeline DynamoDB Export Java Sample

Overview

This sample makes it easy to create a pipeline that uses the latest DynamoDB export template EMR activity. You provide parameters and the tool will create the pipeline and run and monitor it once so you can verify that it is healthy.

This sample also provides an example application using the AWS Data Pipeline Java SDK. It demonstrates how to create, run and monitor a pipeline.

Prerequisites

You must have the AWS CLI and default IAM roles setup in order to run the sample. Please see the readme for the base repository for instructions how to do this.

Getting started

Build: mvn clean package

View parameters description: java -jar path/to/DynamoDBExportSample-0.1.jar help

Run: java -jar path/to/DynamoDBExportSample-0.1.jar <-yourParam foo>

Example

Create and run on a pipeline that runs once per day:

java -jar /Users/foobar/DynamoDBExportJava/target/DynamoDBExportSample-0.1.jar -credentialsFile /Users/foobar/.aws/credentials -myDDBTableName footable -myOutputS3Location s3://foobar/ddb-exports -schedule daily -myLogsS3Location s3://foobar/logs -myDDBRegion us-east-1

Create and run on a pipeline that runs once:

java -jar /Users/foobar/DynamoDBExportJava/target/DynamoDBExportSample-0.1.jar -credentialsFile /Users/foobar/.aws/credentials -myDDBTableName footable -myOutputS3Location s3://foobar/ddb-exports -schedule once -myLogsS3Location s3://foobar/logs -myDDBRegion us-east-1

Disclaimer

The samples in this repository are meant to help users get started with Data Pipeline. They may not be sufficient for production environments. Users should carefully inspect code samples before running them.

Use at your own risk.

Licensed under the MIT-0 License.