Download and Compile the Code
Clone the repository to your local machine.
git clone https://github.com/ThalesGroup/CipherTrust_Application_Protection.gitThe database directory has all the code for AWS Redshift. You should see the classes in your project.

CRDP supports a bulk API which allows for CADP to batch requests before calling encrypt or decrypt. A single class file that accepts environment variables will allow the UDF to be used by more than one UDF function.
Assuming you have your CM and your CRDP container already configured the
ThalesAWSRedshiftCRDPBulkTestercan be used to test basic connection to the CRDP container to make sure your CM environment is configured correctly. You will need to modify environment variables such as CRDPIP, BATCHSIZE and other necessary settings.Please see the Advanced Topics for all the environment variables and descriptions. If you plan on using UserSets, the user must also be in the Application Data Protection Client Group.
Generate the Jar File to Upload to the CSP
To compile and generate the target jar file to be uploaded to AWS Lambda, select the project and choose “Run As” “maven install” to generate the target.
[INFO] Replacing original artifact with shaded artifact.
THALES GROUP LIMITED DISTRIBUTION - SCOPE
[INFO] Replacing C:\Users\t0185905\workspace\Thales-AWS-Redshift-UDF\target\Thales-AWS-Redshift-UDF-0.0.1-SNAPSHOT.jar with C:\Users\t0185905\workspace\Thales-AWS-Redshift-UDF\target\Thales-AWS-Redshift-UDF-0.0.1-SNAPSHOT-shaded.jar
[INFO]
[INFO] --- maven-install-plugin:3.0.1:install (default-install) @ Thales-AWS-Redshift-UDF ---
[INFO] Installing C:\Users\t0185905\workspace\Thales-AWS-Redshift-UDF\pom.xml to C:\Users\t0185905\.m2\repository\ThalesCPL\Thales-AWS-Redshift-UDF\0.0.1-SNAPSHOT\Thales-AWS-Redshift-UDF-0.0.1-SNAPSHOT.pom
[INFO] Installing C:\Users\t0185905\workspace\Thales-AWS-Redshift-UDF\target\Thales-AWS-Redshift-UDF-0.0.1-SNAPSHOT.jar to C:\Users\t0185905\.m2\repository\ThalesCPL\Thales-AWS-Redshift-UDF\0.0.1-SNAPSHOT\Thales-AWS-Redshift-UDF-0.0.1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.056 s
[INFO] Finished at: 2024-07-10T12:26:14-04:00
[INFO] ------------------------------------------------------------------------