Skip to main content
Version: v1.40.0

AWS SQS

Overview​

Export evaluation data inside a AWS SQS queue.
info

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:

goff-proxy.yaml
# ...
exporter:
kind: sqs
queueUrl: "https://sqs.us-east-1.amazonaws/XXXX/test-queue"
# ...
Field nameMandatoryTypeDefaultDescription
kindstringnoneValue should be sqs.
This field is mandatory and describes which retriever you are using.
queueUrlstringnoneURL 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:

example.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,
},
},
// ...
}
err := ffclient.Init(config)
defer ffclient.Close()
FieldMandatoryDescription
QueueURL URL of your SQS queue.
You can find it in your AWS console.
AwsConfig An instance of aws.Config that configures your access to AWS (see this documentation for more info).