---
sidebar_position: 70
description: How to configure an AWS SQS exporter.
---
import { integrations } from "@site/data/integrations";
import {Mandatory, NotMandatory} from "@site/src/components/checks/checks";
export const exporterName = 'AWS SQS'
export const info = integrations.exporters.find((r) => r.name === exporterName)

# AWS SQS

## Overview
{info.longDescription ?? info.description}

:::info
{exporterName} 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 {exporterName} exporter, you need to add the following
configuration to your relay proxy configuration file:

```yaml title="goff-proxy.yaml"
# ...
exporters:
  - kind: sqs
    queueUrl: "https://sqs.us-east-1.amazonaws/XXXX/test-queue"
# ...
```
| Field name |   Mandatory   | Type   | Default  | Description                                                                                           |
|------------|:-------------:|--------|----------|-------------------------------------------------------------------------------------------------------|
| `kind`     | <Mandatory /> | string | **none** | **Value should be `sqs`**.<br/>_This field is mandatory and describes which retriever you are using._ |
| `queueUrl` | <Mandatory /> | string | **none** | URL of your SQS queue.<br/>_You can find it in your AWS console._                                     |

## Configure the GO Module
To configure your GO module to use the {exporterName} exporter, you need to add the following
configuration to your `ffclient.Config{}` object:

```go title="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()
```
| Field        |   Mandatory   | Description                                                                                                                                                                                |
|--------------|:-------------:|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `QueueURL `  | <Mandatory /> | URL of your SQS queue.<br/>_You can find it in your AWS console._                                                                                                                          |
| `AwsConfig ` | <Mandatory /> | An instance of `aws.Config` that configures your access to AWS *(see [this documentation for more info](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html))*. |
