awslabs / emr-dynamodb-connector

Implementations of open source Apache Hadoop/Hive interfaces which allow for ingesting data from Amazon DynamoDB
Apache License 2.0
217 stars 135 forks source link

Integration with DynamoDB Encryption Client #148

Closed railsmith closed 3 years ago

railsmith commented 3 years ago

Is it possible to extend this code to use DynamoDB Encryption Client? It will be a good enhancement to support this feature.

railsmith commented 3 years ago

Closing this issue since the DynamoDB attributes can be encrypted using the DynamoDBEncryptor class available in the DynamoDB Encryption Client Library before adding to the DynamoDBItemWritable class in the EMR DynamoDB Connector as shown below.

final Map<String, AttributeValue> encrypted_record = encryptor.encryptRecord(record, actions, encryptionContext); dynamoDBItemWritable.setItem(encrypted_record);