Destinations
AWS SQS
Send events to an Amazon SQS queue.
Configuration
Config
| Field | Type | Required | Description |
|---|---|---|---|
config.queue_url | string | Yes | The SQS queue URL |
config.endpoint | string | No | Custom endpoint URL (for LocalStack, etc.) |
Credentials
| Field | Type | Required | Description |
|---|---|---|---|
credentials.key | string | Yes | AWS Access Key ID |
credentials.secret | string | Yes | AWS Secret Access Key |
credentials.session | string | No | AWS Session Token (for temporary credentials) |
Example
sh
Message Format
Events are sent as SQS messages with:
- Message Body: The event's
datafield (JSON) - Message Attributes: Event metadata
Example Message
If you publish an event:
json
Message Body:
json
Message Attributes:
The metadata attribute contains a JSON string with system metadata and any event metadata:
| Attribute | Type | Description |
|---|---|---|
metadata | String | JSON containing event-id, topic, timestamp, plus any event metadata |
Example value:
json
IAM Permissions
The IAM user or role needs the following permission:
json
Using with LocalStack
For local development with LocalStack, set the config.endpoint field:
json