awslabs / dynamodb-cross-region-library

A library to facilitate cross-region replication with Amazon DynamoDB Streams.
Apache License 2.0
275 stars 98 forks source link

Authentication details #37

Closed akshetty9 closed 7 years ago

akshetty9 commented 7 years ago

Can you please mention what authentication does this require and how to set the credentials. I am seeing this erros after running the command line.

2016-11-11 11:19:11,085 FATAL com.amazonaws.services.dynamodbv2.streams.connectors.CommandLineInterface - com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain

dymaws commented 7 years ago

Please refer to the main method below:

https://github.com/awslabs/dynamodb-cross-region-library/blob/master/src/main/java/com/amazonaws/services/dynamodbv2/streams/connectors/CommandLineInterface.java#L99

Here we use DefaultAWSCredentialsProviderChain provided in the AWS SDK. According to the AWS SDK documentation there are multiple types of credentials supported:

http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html