Amazon SQS
8 min
amazon sqs (simple queue service) is a fully managed message queuing service that enables communication between different parts of a system it allows users to create, retrieve, and delete messages in a queue, ensuring reliable and scalable message handling across distributed applications getting started with amazon sqs prerequisites an active amazon web services (aws) account connecting engini to amazon sqs enter your engini account at https //app engini io https //engini io/ navigate to connections page by clicking on the connections on the left sidebar or by clicking here https //app engini io/connections click on the "new integration" option located at the top bar choose the amazon sqs option from the available applications enter the following details in the “new integration” form and press save connection name enter a unique and descriptive name for this connection this name will help you easily identify and manage your amazon sqs connection within your system account id provide the amazon web services (aws) account id associated with your sqs queues this id uniquely identifies your aws account and is necessary to establish the connection access key input the aws access key associated with your account this key is used to authenticate your requests to aws services, including sqs secret key enter the corresponding aws secret key for your access key this key is required to securely authorize access to your sqs resources region specify the aws region where your sqs queues are hosted ensure the region matches the location of your sqs service to avoid connectivity issues save settings click on the save button located at the bottom of the form trigger check for new messages queue name enter the name of the amazon sqs queue from which you want to check for new messages this is the unique identifier for the queue where messages are stored attribute names specify any additional attributes you want to retrieve with the messages this field allows you to include specific message attributes along with the message content starting (utc) set the date and time when the trigger should start checking for new messages in the queue ensure the time is in coordinated universal time (utc) for proper scheduling recur every define the interval at which the system should check for new messages you can specify a recurrence in minutes, hours, or other time intervals based on your requirements add time frame optionally, set a specific time frame during which this trigger should be active this helps restrict the message check to specific periods add conditions click add condition to define conditions that narrow down the data list and return only the relevant items to learn more about using filters, click here https //help engini ai/workflow editor#add conditions actions create message creates and sends a new message to an amazon sqs queue specify the target queue and the message content, then optionally add additional attributes to include extra metadata with the message queue name enter the name of the amazon sqs queue where you want to send the message this identifies the specific queue to which the message will be delivered message body provide the content of the message you want to send this is the main text or payload that will be delivered to the queue add field click add field to add and populate additional fields for the selected activity to learn more about managing activity data, click here https //help engini ai/workflow editor#add fields delete message permanently removes a message from an amazon sqs queue to delete a message, provide the target queue and the receipt handle received when the message was retrieved queue name enter the name of the amazon sqs queue from which you want to delete the message this identifies the queue containing the message that you want to remove receipt handle provide the receipt handle of the message you wish to delete the receipt handle is a unique identifier returned when the message was retrieved from the queue this is required to delete the specific message once these fields are filled in, this action will delete the message from the specified queue using the receipt handle get messages queue name enter the name of the amazon sqs queue from which you want to retrieve messages this identifies the queue you want to read messages from attribute names select the message attributes you want to retrieve along with the message body you can choose to fetch specific attributes or select “all” to retrieve all attributes associated with the messages add filter click add filter to define conditions that narrow down the data list and return only the relevant items to learn more about using filters, click here https //help engini ai/workflow editor#add filtersfcwesvtyflkox#add filters