Use the Amazon SQS connector to manage message queues between applications.
Integrating your application with Amazon SQS lets you use these operations in an automation. It exposes 5 actions and 1 trigger, listed below. Add the connector from the Connections area, authenticate, then select its operations in the automation builder. Capabilities: triggers, actions.
Authentication
Before you begin, make sure you have the following information. UnifyApps signs every Amazon SQS request for you, so you only enter the values below.
Connection name: a name that identifies this connection in UnifyApps, such as "MyAppAmazonSQSIntegration".
Region (required): the AWS region of your resources, such as us-east-1. If your AWS console URL starts with https://us-east-1.console.aws.amazon.com, enter us-east-1.
Authentication type: Access Key, IAM Role or Instance Role.
The fields you fill in depend on the authentication type:
Access Key: enter the Access key ID and Secret access key of an IAM user (both required).
IAM Role: enter the ARN of an IAM role in the IAM Role field (required), and in External Id the external ID set on the role's trust relationship.
Instance Role: no keys are entered; the connection uses the IAM role of the environment that UnifyApps runs in. Use it only when UnifyApps runs inside your own AWS account.
Access Key Based Authentication
Sign in to the AWS Management Console.
Search for Users in the search bar at the top of the console and open Users in IAM (Identity and Access Management).
Click Create user and enter a user name.
Choose Attach policies directly and attach the AmazonSQSFullAccess policy (or a policy that grants the Amazon SQS permissions you need). Click Create user.
Open the new user, go to Security credentials and click Create access key.
Choose Command Line Interface as the use case, add a description tag and click Create access key.
Copy the access key ID and secret access key into the connection form. Store them securely; anyone with them can access your AWS account.
IAM Role Based Authentication
Sign in to the AWS Management Console and open IAM.
Select Roles and click Create role.
Under Trusted entity type, choose AWS account, select Another AWS account and enter the UnifyApps AWS account ID. Contact UnifyApps support to get it.
Check Require external ID and enter the external ID provided by UnifyApps. Enter the same value in the External Id field of the connection form.
Attach the AmazonSQSFullAccess policy (or a policy that grants the Amazon SQS permissions you need).
Enter a role name and description, and click Create role.
Open the role, copy its ARN and paste it into the IAM Role field of the connection form.
The screenshots below show the AWS console. First, the Retrieve access keys page that appears after you create an access key:


Next, the trusted entity settings of an IAM role: Another AWS account with Require external ID checked:


Finally, the IAM dashboard, where the account menu and the AWS Account panel show your own account details:


Actions
Action Name | Description |
|---|---|
Delete message | Deletes a message in Amazon SQS. |
Delete message batch | Deletes messages in Amazon SQS (batch). |
Receive message | Receives a message from Amazon SQS. |
Send message | Sends a message in Amazon SQS. |
Send message | Sends messages in Amazon SQS (batch). |
Two actions are named Send message: one sends a single message and the other sends a batch of messages. Check the action's description in the action picker to choose the right one.
Triggers
Trigger Name | Description |
|---|---|
On event received | Triggers when an event is received in Amazon SQS |
About the API
Amazon SQS is a reliable, highly-scalable hosted queue service for storing messages as they travel between applications or microservices. The UnifyApps connector supports only the actions and trigger listed above; the capabilities below describe the Amazon SQS API as a whole.
Core Capabilities:
Send, receive, and delete messages from queues
Set message visibility timeout and retention period
Create and manage queue attributes
Use message attributes for metadata
Configure Dead-Letter Queues for failed messages
Batch operations for improved efficiency
Long polling for reduced API calls
You can use AWS SDKs to access Amazon SQS in your favorite programming language. The SDKs perform tasks automatically including cryptographically signing requests, retrying requests, and handling error responses.
Official documentation
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html