Json to S3

Hi,

I’m having an Amazon S3 repository, I wanted to push a Json from my activity to the S3 bucket.
Please suggest how to achieve this with Pega Best practice.

Hi @SheelK871 - The recommended approach is to use a Connect‑REST integration to upload JSON data to Amazon S3, instead of custom Java or AWS SDKs. This keeps the solution declarative, secure, upgrade‑safe, and easy to maintain.

At a high level, configure authentication using IAM roles (if Pega runs on AWS) or an Authentication Profile / Keystore to securely manage access keys. Create a REST connector that performs an HTTP PUT call to the S3 REST endpoint with Content-Type set to application/json.

Build the JSON payload using a Data Transform (preferred) or by converting clipboard data to JSON, then invoke the REST connector from the activity to upload the payload as an object to S3. Handle the HTTP response for success or error scenarios.

Avoid hard‑coding credentials or using custom Java. Using REST‑based integration aligns with Pega best practices and ensures long‑term maintainability.

Let me know if this answers your requirement

Thanks,

Roshan Raj A K

What is the intent to send JSON file to S3 repo? Is the intent to store attachments?

Yes Ramesh, intent is to store documents.

Please use Pega OOTB data pages to store the documents in S3 repo. D_pxNewFile, D_pxGetFile, D_pxDelete. This works for Custom repo as long as you have defined in the Application Definition → Integration tab

Hi @SheelK871 : Please check these. You can use repository APIs.

Thanks.