Piloterr
Destinations

Amazon SQS

Send Dataflow's events to an Amazon SQS standard queue, with an IAM key that can only send to it.

Each event becomes one message on your queue. Dataflow signs in with an IAM access key that may only send to that queue.

Set up the queue

Create a standard queue

In the SQS console, Create queue, type Standard, or:

aws sqs create-queue --queue-name dataflow-events --region eu-west-1

Copy its URL, https://sqs.eu-west-1.amazonaws.com/123456789012/dataflow-events. FIFO queues (.fifo) are not supported: they need a message group id that deliveries do not set, so Dataflow refuses them.

Create an IAM user that can only send to it

Create an IAM user for Dataflow, with no console access, and give it this policy, with your queue's ARN:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sqs:SendMessage",
      "Resource": "arn:aws:sqs:eu-west-1:123456789012:dataflow-events"
    }
  ]
}
  • If the queue is encrypted with your own KMS key (SSE-KMS), also allow kms:GenerateDataKey and kms:Decrypt on that key. The default SQS-managed encryption needs nothing more.
  • To accept only our address, add "Condition": { "IpAddress": { "aws:SourceIp": "116.203.84.164/32" } } to the statement, with the exit_ips of GET /v1/destinations/types.

Create an access key

On the user, Security credentials → Create access key, use case Application running outside AWS. Keep the access key ID and the secret access key.

Add the destination

curl https://dataflow.piloterr.com/v1/destinations \
  -H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
  -d '{
    "type": "aws_sqs",
    "config": { "queue_url": "https://sqs.eu-west-1.amazonaws.com/123456789012/dataflow-events" },
    "credentials": { "access_key_id": "AKIAIOSFODNN7EXAMPLE", "secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" },
    "topics": ["run.completed", "run.failed"],
    "description": "Warehouse loader"
  }'
FieldRequiredSecretHolds
config.queue_urlyesnoThe standard queue's URL, https://sqs.<region>.amazonaws.com/<account>/<queue>.
credentials.access_key_idyesyesThe IAM user's access key ID, AKIA….
credentials.secret_access_keyyesyesIts secret access key.

Credentials are stored encrypted and shown masked (AKIA…). To change them, send both again with PATCH. See Credentials.

Network

Messages go to the SQS API over HTTPS (443), from our egress address, 116.203.84.164 (exit_ips of GET /v1/destinations/types). There is nothing to open on your side; use that address in the aws:SourceIp condition above if you want to restrict the key to it.

What the queue receives

  • Body: the event payload, as JSON text.
  • Message attribute metadata (type String): a JSON object with event-id (the payload's id), topic (such as run.completed) and timestamp (when it was sent, RFC 3339).
{ "event-id": "RUN_ID", "topic": "run.completed", "timestamp": "2026-12-01T08:42:11Z" }

Read the topic from the attribute to route a message before parsing its body, and deduplicate on event-id. A message is at most 1 MiB, so a run.results batch fits.

Test it

Send a test event from the dashboard, or POST /v1/destinations/{id}/test (details), then look for the message in the queue (Send and receive messages → Poll for messages). The delivery log's code is OK, or ERR for any failure.

ProblemFix
422 validation_failed on config.queue_urlUse the queue URL as SQS shows it, of a standard queue.
422 validation_failed on credentials.access_key_idCopy the access key ID, 16 or more capital letters and digits.
ERR on every deliveryCheck, in this order: the policy allows sqs:SendMessage on this queue's ARN (and KMS for an SSE-KMS queue); an aws:SourceIp condition names our address; the key is active and both credentials were copied whole (send them again with PATCH); the URL's region and account are the queue's.

Other errors: Errors.

On this page