Send events to an Amazon SQS queue.

Creating an AWS SQS Destination

curl 'https://api.outpost.hookdeck.com/2026-09-01/tenants/<TENANT_ID>/destinations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
  "type": "aws_sqs",
  "topics": ["orders"],
  "config": {
    "queue_url": "https://sqs.us-east-1.amazonaws.com/123456789012/my-queue"
  },
  "credentials": {
    "key": "<AWS_ACCESS_KEY_ID>",
    "secret": "<AWS_SECRET_ACCESS_KEY>"
  }
}'

Configuration

Config

FieldTypeRequiredDescription
config.queue_urlstringYesThe SQS queue URL. A URL that is not an AWS SQS endpoint requires DESTINATIONS_ALLOW_CUSTOM_ENDPOINTS.
config.endpointstringNoCustom endpoint URL for emulators such as LocalStack. Requires DESTINATIONS_ALLOW_CUSTOM_ENDPOINTS.

Credentials

FieldTypeRequiredDescription
credentials.keystringYesAWS Access Key ID
credentials.secretstringYesAWS Secret Access Key
credentials.sessionstringNoAWS Session Token (for temporary credentials)

Message Format

Events are sent as SQS messages:

  • Message Body: The event's data field as JSON
  • Message Attributes: A single metadata attribute containing a JSON string with system metadata (event-id, topic, timestamp) plus any event metadata

Example

Publishing this event:

{
  "topic": "orders",
  "data": { "order_id": "123", "status": "created" },
  "metadata": { "source": "checkout-service" }
}

Results in:

Body:

{"order_id": "123", "status": "created"}

Message Attributes:

{
  "metadata": "String: {\"event-id\":\"evt_123\",\"topic\":\"orders\",\"timestamp\":\"1704067200\",\"source\":\"checkout-service\"}"
}

IAM Permissions

The IAM user or role requires:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": "sqs:SendMessage",
    "Resource": "arn:aws:sqs:*:*:my-queue"
  }]
}

Local Development with LocalStack

Set DESTINATIONS_ALLOW_CUSTOM_ENDPOINTS=true on the Outpost deployment (a queue_url that is not an AWS SQS endpoint needs it too), then set config.endpoint to your LocalStack URL:

{
  "type": "aws_sqs",
  "topics": ["orders"],
  "config": {
    "queue_url": "http://localhost:4566/000000000000/my-queue",
    "endpoint": "http://localhost:4566"
  },
  "credentials": {
    "key": "test",
    "secret": "test"
  }
}