Publish jar/zip file to AWS Lambda Function or Google Cloud Function
GCP Cloud Function
To create a GCP Cloud function:
Once you have generated the
jar
file to upload you can then create the CSP function. Google requires a .zip file, so, it is recommended to zip up thejar
file in the target directory of your eclipse project.Set the CMUSER, CMPWD, and BATCHSIZE to the appropriate environment values. Click Next.
Upload the zip file.
Ensure that you change the Entry point to the class file you are deploying. The example displayed above is
com.example.ThalesGCPSnowCADPNbrEncryptBulkFPE
.Click Deploy to deploy the function.
AWS Lambda Function
To create a lambda function:
Provide your function a name and upload the jar file. Make sure you provide the appropriate class file name.
Under the configuration tab, set CMUSER, CMPWD, and BATCHSIZE to the appropriate environment values. Set memory to 256MB.
Note
Further testing may allow for lower settings.
Ensure that you change the Handler to the class file you are deploying. The example displayed above is
example.LambdaRequestStreamHandlerNbrEncryptFPE
Once you have created the above functions and if you have already configured and setup CM with the key and userid/pwd, you can test the function with the test tab. You need to provide the appropriate json to test. The AWS examples use the format from the API Gateway which includes all the headers and other attributes that can be parsed by the UDF.