Apps
Amazon SQS
9 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 //engini io/ navigate to connections page by clicking on the connections on the left sidebar or by clicking https //app engini io/connections click on the add connection option located at the topbar choose the amazon sqs option from the available applications enter the following details in the “add connection” 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 once all required fields are completed, click save to establish the connection 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 next run at this field shows the calculated time for the next scheduled check based on your input the time is displayed in both utc and your local time zone for clarity once all required fields are completed, the trigger will automatically check for new messages based on the defined schedule add conditions if you want the trigger “check for new messages” to be activated only under a certain condition, click on the “add condition” button by choosing to add a condition, the workflow will only work if the condition or the number of conditions you added are met follow the next steps to add conditions select from the drop down the field you want to add the condition on select the condition you want the record to meet click on the empty field and the tooltip will pop up showing the options you can choose you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using functions and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat steps a d for all the fields you want to populate actions create 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 (optional) optionally, you can add additional fields or attributes to the message these can be key value pairs that accompany the message body, providing more context or metadata about the message once all required fields are completed, this action will send the message to the specified queue delete message 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 (optional) optionally, you can add filters to specify certain conditions for retrieving messages, such as filtering by specific attributes or message content once all required fields are completed, this action will fetch messages from the specified queue based on the provided criteria 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