Amazon SQS rule
Use Ably’s Firehose SQS rule to send data such as messages, occupancy, lifecycle and presence events from Ably to SQS.
Creating a SQS rule
Copied!
There are two ways to create a SQS rule:
- Using the Ably Dashboard.
- Using the Control API.
To create a rule in your dashboard:
- Login and select the application you wish to integrate with SQS.
- Click the Integrations tab.
- Click the New Integration Rule button.
- Choose Firehose.
- Choose AWS SQS.
- Configure the settings applicable to your use case and your SQS installation.
- Click Create,
SQS general rule settings
Copied!
The following explains the SQS general rule settings:
Section | Purpose |
---|---|
URL | Specifies the HTTPS URL for the SQS queue, including credentials, region, and stream name. |
AWS region | Defines the AWS region associated with the SQS queue. |
AWS authentication scheme | Allows selection of the authentication method: AWS credentials or ARN of an assumable role. |
AWS credentials | Enter AWS credentials in `key:value` format for authentication. |
Source | Defines the type of event to deliver, such as Message, Presence, Channel Lifecycle, or Channel Occupancy. |
Channel filter | Allows filtering of the rule based on a regular expression matching the channel name. |
See some examples of creating rules in the rules section of the Control API documentation. You can also refer to the rule section of the Control API Reference for information on creating a SQS rule. You will need to select a ruleType
of aws/sqs
.