Posted: 20 Dec 2018 16:32 EST Last activity: 23 Sep 2019 18:36 EDT
BIX extract to Amazon S3 Bucket from Pega Cloud
My client would like some case data extracted and we are planning on using BIX. We are using Pega Cloud version 7.4 and the BIX documentation states that you have to write the files to an SFTP sever. However the client wants us to write the files to an Amazon S3 Bucket. Has anybody done this before and can suggest an approach?
This might be useful for others who have a similar requirement. Below Java code will send a file from your pega server to amazon s3 bucket. Best practice is to build a function and call it inside your custom activity (refer pzFTPService if you want to use this in conjunction with BIX)
The AWS Java SDK jar file needs to loaded to your pega environment. The version of this JAR file will be based on the java version your pega environment.
The JAVA code that sends the files to s3 bucket also uses the below JAR files. However, they are already part of OOTB PEGA product and should not be touched due to versioning issues.
1. Apache Commons Logging
3. jackson annotations
4. Jackson Core
5. Jackson Databind
6. Joda Time
Below classes needs to be imported by your function or library.