cs-icon.svg

AWS SQS

AWS Simple Queue Service (AWS SQS) connector is a message queuing system that enables two-way communication between different distributed app components. It follows a polling mechanism where one component (publisher) pushes messages to the queue, and the consumer (processor) explicitly pulls out those messages from the queue to check them.

Set Up AWS SQS

Perform the following steps to set up the AWS SQS action connector:

  1. Click Configure Action Step from the left navigation panel.
  2. Click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the AWS SQS connector.
    Select_the_Connector_SQS.png
  4. Under Choose an Action tab, select the Send Message action.
    AWS-SQS-Action.png
  5. Click the + Add New Account button to add your AWS account (see screenshot in next step).
    Add_New_Account.png
  6. In the Authorize modal, provide details such as Title, Access Key, Secret Key and Region.
    You can generate the Access and Secret Key by navigating through Security credentials > Access Keys > Create New Access Key in your AWS account.
    Third-party-access_key.png

    Additional Resource: For more information, refer to the Managing access keys for IAM users document.


    Then click Authorize.
    Authorize_button
  7. You can select the Queue URL from the Lookup list that appears when you click the textbox. The Queue URL needs to be present and defined in your AWS account.
    Select the Queue Type from a list of populated suggestions. There are two types of queues, i.e., Standard and FIFO. Choose as per your requirement. For this example, we have chosen the Standard Queue Type.
    The Message Body should contain the message you want to see in the SQS dashboard.
    AWS-SQS-Configure-Action.png
  8. Click the Show optional fields toggle button to add Message Attributes in the JSON format. For Standard Queue Type, you need to enter the number of seconds for delaying any specific message in the Delay Seconds textbox. For FIFO Queue Type, you need to enter the Message Group Id and Message Deduplication Id in the respective textboxes.
    Show_Optional_Fields_SQS.png
  9. Click Proceed.
  10. Check if the details are correct. If yes, click Test Action.
    AWS-SQS-Test-Action.png
  11. Once set, click Save and Exit.
    AWS-SQS-Output.png
  12. To see the SQS message, login to your AWS account. Type SQS in the search bar, and click on Sample Queue Service to navigate to the SQS dashboard.
    Click_Sample_Query_service.jpg
  13. Click the queue name or URL from the populated list.
    Queues.png
  14. Click Send and receive messages to fetch messages from SQS. A list of messages appears below the table.
    Amazon-StandardQueue-Details.png
  15. In AWS SQS, you need to pull the messages from the server. Click on Poll for messages to fetch the list of messages.
  16. Click the message ID to view your message.

    Receive-Message-Poll-Message.png
  17. Your final output will appear as follows. Output.png

This sets the AWS SQS action connector.

Was this article helpful?
^