Application for copying Amazon Kinesis data to S3.
- Download the app
- Configure your application (start with the template
KinesisToS3.SAMPLE.properties
) - Configure AWS access credentials:
- Locally, set either
- the environment variables
AWS_ACCESS_KEY_ID=xxx
andAWS_SECRET_KEY=yyy
- or the JVM options
-Daws.accessKeyId=xxx
and-D=aws.secretKey=yyy
- the environment variables
- On Amazon EC2
- No configuration needed if you start the server instance with a proper IAM role (highly recommended!)
- Locally, set either
- Run the app:
java -jar kinesis-to-s3-[version].jar configuration.properties
The main class is com.github.codeflows.aws.KinesisToS3
Build with Maven. Running
mvn clean package
will create a runnable jar at ./target/kinesis-to-s3-[version].jar
Licensed under the MIT license.
Uses the Amazon Kinesis Client Library, the Amazon Kinesis Connector Library and the AWS SDK for Java. These are also embedded in the runnable jar. See the AWS licensing terms.
The Kinesis Connector sample code contains code for copying Kinesis data to S3, but is not easily reusable. This application contains the minimal code for the copying process and nothing else.