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:
- In the Configure Action section, select the AWS SQS connector.
- In the Select an Action tab, select the Send message action. This action lets you send messages to the AWS SQS queue.
- In the Configure Action tab, click on + Add New Account to add your AWS account.
- In the Authorize pop-up window, provide details such as Title, Access Key, Secret Key, and Region.
To generate an Access Key and a Secret Key, login to the AWS dashboard and perform the following steps:
- Under “User Settings,” select Security Credentials.
- Click on the Access keys dropdown to Create New Access Key.
Additional Resource: For more information, refer to the Managing access keys for IAM users document.
- Once done, click on Authorize.
- You can select the Queue URL from the LOOKUP list that appears when you click on 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 Queue Type and FIFO Queue Type. Choose as per your requirement.
- The Message Body should contain the message you want to see in the SQS dashboard.
- Below Message Body, click on the Show Optional Field toggle button to add Message attributes. The message must be in JSON format.
- In the Delay Seconds textbox, enter the number of seconds by which you want to delay any specific message.
- Click on Proceed to test the action.
- Click on Test Action to test the configured action.
- On successful configuration, you can see the below output. Click on Save and Exit.
- 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 on the queue name or URL from the populated list.
- Click on Send and receive messages to fetch messages from SQS. A list of messages appears below the table.
- In AWS SQS, you need to pull the messages from the server. Click on Poll for messages to fetch the list of messages.
Click on the message ID to view your message.
- Your final output will appear as follows.
This sets the AWS SQS action connector.