SQS
  • 13 May 2022
  • 1 Minute to read
  • Dark
    Light

SQS

  • Dark
    Light

Overview

The Amazon Web Services (AWS) module allows users to integrate with AWS's Simple Queue Service (SQS) Message Queue. 

Prerequisites 

  • Installation of the AWS module.
  • Active AWS account and application.
  • If using temporary credentials, an Amazon IAM role with access to the queue will need to be created.

Example

This example will demonstrate how to integrate SQS in Decisions using the AWS module.

  1. In the Decision Studio, navigate to System (gear icon) > Settings. Right-click Amazon WebServices Settings and select Edit.
  2. On the Edit Amazon EC 2 Portal Settings, select the Use SQS option. Click ADD under SQS Queues.
  3. On the Add SQS Queues window, enter the SQS Display Name, select the Queue Region, and enter the Queue Access Key Id, Queue Secret Key, and the Queue URL from the AWS SQS service page. Click OK when done.
    By default messages sent to an SQS queue will be encoded in Base64 format. To allow messages to be interpreted as a plain String, uncheck both Send/Read String Messages as Base64.

  4. Click SAVE.



Using Temporary Credentials

Users can specify temporary credentials to be used by an SQS queue in Decisions. These credentials are an Amazon AWS IAM role that has access to the queue. 

  1.  On the System page, navigate to Settings > Amazon WebServices Settings.
  2. Select or create a new SQS Queue 
  3. In the following dialog, check Use Temp Credentials. A new textbox will appear allowing the user to specify the role.

SQS Message Queue steps

SQS Message queue steps can be found under Integration -> Amazon AWS -> SQS in the step toolbox.

Post SQS Message step

The Post SQS Message step accepts a String input as message and returns an ID when the step completes. This ID will match the ID that the SQS queue generates.

The queue can also be specified for the step, which is done by expanding the Settings header in the Properties panel and selecting the queue from the drop down menu, or by checking Get Queue from Flow.

InputOutput
Message TextMessage ID



For further information on Modules, visit the Decisions Forum.

Was this article helpful?

What's Next