Skip to content

AWS SQS ​

Overview ​

Export evaluation data inside a AWS SQS queue.

NOTE

AWS SQS is an exporter of type queue, it means that it send events as soon as he receives them it does not work in bulk but in near real time.

Configure the relay proxy ​

To configure your relay proxy to use the AWS SQS exporter, you need to add the following configuration to your relay proxy configuration file:

yaml
# ...
exporters:
  - kind: sqs
    queueUrl: "https://sqs.us-east-1.amazonaws/XXXX/test-queue"
# ...
Field nameMandatoryTypeDefaultDescription
kindYesstringnoneValue should be sqs.
This field is mandatory and describes which retriever you are using.
queueUrlYesstringnoneURL of your SQS queue.
You can find it in your AWS console.

Configure the GO Module ​

To configure your GO module to use the AWS SQS exporter, you need to add the following configuration to your ffclient.Config{} object:

go
awsConfig, _ := config.LoadDefaultConfig(context.Background())
config := ffclient.Config{
   // ...
   DataExporter: ffclient.DataExporter{
        // ...
        Exporter: &sqsexporter.Exporter{
            QueueURL: "https://sqs.eu-west-1.amazonaws.com/XXX/test-queue",
            AwsConfig: &awsConfig,
        },
    },
    // ...
}
client, err := ffclient.New(config)
defer client.Close()
FieldMandatoryDescription
QueueURL YesURL of your SQS queue.
You can find it in your AWS console.
AwsConfig YesAn instance of aws.Config that configures your access to AWS (see this documentation for more info).

Released under the MIT License.