How can I integrate AWS SQS in Pega?

We need integrate an AWS SQS in a Pega function, processes a queue and stores the obtained records in a database table, to do this, we need to import the necessary libraries from the AWS SDK. Is this possible?

We need to import the following libraries:

import com.amazonaws.services.sqs.AmazonSQS;

import com.amazonaws.services.sqs.AmazonSQSClientBuilder;

import com.amazonaws.services.sqs.model.AmazonSQSException;

import com.amazonaws.services.sqs.model.SendMessageBatchRequest;

The following URLs have examples of what we need to develop in the function.

https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-sqs-messages.html

https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/java/example_code/sqs/src/main/java/aws/example/sqs/SendReceiveMessages.java

@DoneyR87 Is there any specific reason why you are taking SDK route instead of API route ?

@Raju_Botu

We had not taken that option into account, we are going to evaluate it. Thanks.

@Raju_Botu

Hi Raju,

To use the API we need to Authenticate with the AWS Signature. Apparently the AWS Authentication profile is only available to use with repositories for the moment, do you have an idea how we can achieve this?

@LauraH99 : Hi Laura, Did you find a way to authenticate with AWS signatures to be able to use the API’s?

@Raju_Botu