diff --git a/migrator/src/main/scala/com/scylladb/migrator/DynamoUtils.scala b/migrator/src/main/scala/com/scylladb/migrator/DynamoUtils.scala index 1fd259a4..41eea5d5 100644 --- a/migrator/src/main/scala/com/scylladb/migrator/DynamoUtils.scala +++ b/migrator/src/main/scala/com/scylladb/migrator/DynamoUtils.scala @@ -175,6 +175,9 @@ object DynamoUtils { jobConf.set(DynamoDBConstants.DYNAMODB_ACCESS_KEY_CONF, credentials.accessKey) jobConf.set(DynamoDBConstants.DYNAMODB_SECRET_KEY_CONF, credentials.secretKey) } + jobConf.set( + DynamoDBConstants.CUSTOM_CREDENTIALS_PROVIDER_CONF, + "com.amazonaws.auth.profile.ProfileCredentialsProvider") jobConf.set( "mapred.output.format.class", "org.apache.hadoop.dynamodb.write.DynamoDBOutputFormat")