# Redis Labs

![RedisLabs_logo.svg](https://assets.relyanceuat.xyz/images/docs/10628171350157/10627468428173.svg)
Redis Labs is the developer of Open-Source Redis, an in-memory database, and commercial provider of Redis Enterprise, a real-time data platform. It provides an number of services including analytics, metering, fraud detection, and other real-time applications.

In order to integrate Redis Labs with Relyance AI you will need an **API Account Key** and **API User Keys**.

#### In Redis Labs:

1. Login to your Redis Labs account.
2. Once logged in go here: [https://app.redislabs.com/#/access-management/api-keys](https://app.redislabs.com/#/access-management/api-keys)
3. Copy the **API Account Key** to be used in Relyance.
4. In the **API user keys** section click the circle with the **+** in it.
5. In the **API key name** column provide a meaningful name and associate the key to a user account (i.e. service account).
6. Click **Create**.
7. This will bring up a dialog box with your **API User Key**, copy this key.

![Redis-3.png](https://assets.relyanceuat.xyz/images/docs/10628171350157/10628131451277.png)

![Redis-4.png](https://assets.relyanceuat.xyz/images/docs/10628171350157/10628173561613.png)

#### In the Relyance AI application:

1. Login to your Relyance account.
2. Navigate to the **Settings** Menu in the bottom left-hand side.
3. Select **Integrations**.
4. Click on the **Vendor Integration** tab.
5. Find the **Redis Labs** integration card and click it to open its connections.
6. Under **Authentication Method**, choose **Custom**.
8. Paste the **API Account Key** and **API User Keys** into their respective fields.

![Redis-1.png](https://assets.relyanceuat.xyz/images/docs/10628171350157/10627467697037.png)

9. Click **Authenticate**.
10. At this point, you should see the following result on the **Vendor** Integrations page:

![Redis-2.png](https://assets.relyanceuat.xyz/images/docs/10628171350157/10627460162061.png)

11. Congratulations, you are now connected to **Redis Labs**.

<!-- terraform-examples:begin (generated from the integration catalog; do not hand-edit) -->

## Manage this integration with Terraform

Connections for this integration can be managed as code with the [Relyance Terraform provider](https://registry.terraform.io/providers/Relyance/relyance/latest). Non-secret fields go in `auth.params`; secret fields go in `auth.secrets_wo`, which is write-only — never stored in Terraform state. Rotate secrets by bumping `auth.secrets_wo_version`.

```hcl
resource "relyance_integration_connection" "redislabs" {
  vendor = "redislabs"
  name   = "<your connection name>"

  auth = {
    method = "api-key"
    params = {
      data_storage_location = "us"
    }
    # Secret fields are write-only: sent to Relyance, never stored in state.
    secrets_wo = {
      api_key = var.redislabs_api_key
      secret_key = var.redislabs_secret_key
    }
    secrets_wo_version = 1
  }

  scans = { "data-inspection" = { enabled = true } }
}
```

<!-- terraform-examples:end -->
