Skip to main content

Amazon SQS [ARCHIVED]

warning

This connector is archived. It's no longer available in the Airbyte Cloud or Airbyte Open Source connector catalogs, and it doesn't receive updates or support from the Airbyte team. For more information, see Archived connectors.

Overview​

The Amazon SQS destination sends each record from your source to a single Amazon SQS queue. It supports both standard and FIFO queues.

Prerequisites​

  • An Amazon SQS queue. See Create a queue in the AWS documentation.
  • An AWS IAM access key ID and secret access key for an IAM user with the following permissions on the queue:
    • sqs:SendMessage
    • sqs:GetQueueAttributes

The connector always authenticates with an access key. Although the access key fields appear as optional in the configuration form, the connection check and syncs fail if you don't provide them.

Setup guide​

Step 1: Create an IAM user and access key​

  1. In the AWS IAM console, create an IAM user for Airbyte.

  2. Attach a policy that grants the required permissions on your queue. For example:

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Action": ["sqs:SendMessage", "sqs:GetQueueAttributes"],
    "Resource": "arn:aws:sqs:<region>:<account-id>:<queue-name>"
    }
    ]
    }
  3. Create an access key for the user and save the access key ID and secret access key.

Step 2: Set up the destination in Airbyte​

Provide the following configuration:

  • Queue URL: The full URL of the queue, for example https://sqs.eu-west-1.amazonaws.com/1234567890/example-queue. The connector treats the queue as a FIFO queue if the URL ends in .fifo.
  • AWS Region: The region of the queue, for example eu-west-1.
  • AWS IAM Access Key ID and AWS IAM Secret Key: The credentials from Step 1.
  • Message Delay (optional): The number of seconds to delay each message before consumers can receive it. Amazon SQS accepts values from 0 to 900. Don't set this for FIFO queues. See Amazon SQS message timers.
  • Message Body Key (optional): The name of a top-level field in the record to use as the message body. See Use the Message Body Key.
  • Message Group Id: Required for FIFO queues and ignored for standard queues. See FIFO queues.

Message format​

All streams are written to the same queue. The connector sends one message per record and doesn't batch messages.

By default, the message body is the record's data serialized as a JSON string. The stream name and other Airbyte metadata aren't included in the body. Each message has one message attribute, airbyte_emitted_at, a String attribute that contains the time the source emitted the record, in milliseconds since the Unix epoch.

Amazon SQS limits the size of each message. Records larger than the limit fail to send. See Amazon SQS message quotas.

Use the Message Body Key​

Set Message Body Key to send the value of one top-level field as the message body instead of the whole record. Nested fields aren't supported. Use this to send text or XML messages.

The field's value must be a string. If the value is an object, array, or number, the message fails to send. If a record doesn't contain the field, or the field is null, the sync fails.

For example, with this input record:

{
"my_xml_field": "<something>value</something>"
}

Setting Message Body Key to my_xml_field produces this message body:

<something>value</something>

FIFO queues​

When the queue URL ends in .fifo, the connector checks that the queue is a FIFO queue and requires Message Group Id. Every message is sent with the same message group ID, so Amazon SQS delivers all records in order as a single group.

How the connector handles deduplication depends on the queue's content-based deduplication setting:

  • Disabled: The connector generates a random deduplication ID for each message, so Amazon SQS doesn't deduplicate any records.
  • Enabled: Amazon SQS deduplicates messages based on their body. Records with identical message bodies sent within the five-minute deduplication interval are delivered only once.

Amazon SQS doesn't support per-message delays on FIFO queues. Leave Message Delay empty and configure a delay on the queue instead.

Supported sync modes​

Sync modeSupported?
Full Refresh - OverwriteNo
Full Refresh - AppendYes
Full Refresh - Overwrite + DedupedNo
Incremental Sync - AppendYes
Incremental Sync - Append + DedupedNo

Namespace support​

This destination does not support namespaces.

Reference​

No configuration specification is available for this connector.

Changelog​

Expand to review
VersionDatePull RequestSubject
0.1.182026-11-0390866Archive connector
0.1.172024-08-2244530Update test dependencies
0.1.162024-08-0343278Update dependencies
0.1.152024-07-2742795Update dependencies
0.1.142024-07-2042165Update dependencies
0.1.132024-07-1341733Update dependencies
0.1.122024-07-1041439Update dependencies
0.1.112024-07-0941237Update dependencies
0.1.102024-07-0640960Update dependencies
0.1.92024-06-2940622Update dependencies
0.1.82024-06-2740215Replaced deprecated AirbyteLogger with logging.Logger
0.1.72024-06-2640536Update dependencies
0.1.62024-06-2540461Update dependencies
0.1.52024-06-2240075Update dependencies
0.1.42024-06-0439070[autopull] Upgrade base image to v1.2.1
0.1.32024-05-2138493[autopull] base image + poetry + up_to_date
0.1.22024-03-05#35838Un-archive connector
0.1.12024-01-03#33924Add new ap-southeast-3 AWS region
0.1.02021-10-27#0000Initial version