Guides
...
Usage Metering
Ingestion Options

AWS SQS

4min

Write events directly to an Amberflo supplied and secured AWS SQS queue

Amberflo provides you with an AWS SQS queue (FIFO) with access rights and controls to write meters.

It automatically picks up the meters for processing as they arrive into the queue.

Please contact us to get the SQS queue and S3 bucket provisioned for your account.

Format

The meter records you send to the SQS queue should be of the same standardized format as accepted by the ingest API. Here are some examples:

JSON


We also support NDJSON format (JSON separated by a newline)

JSON


Code Example

Python


Troubleshooting

The records sent to the queue will be saved in an S3 bucket before being processed (see the AWS S3 integration).

So troubleshooting just follows the same pattern, i.e. a file will be created in S3 with the failure reason.

We also set up a dead-letter queue in case there are issues writing to the S3 bucket.