# PacketFabric

![PacketFabric.svg](https://assets.relyanceuat.xyz/images/docs/8047546470797/8047487240589.svg)
PacketFabric is a highly scalable network-as-a-service platform, delivering scalable private connectivity between any two or more points on-net. It allows the customer to easily configure multi-cloud network connections to and between all supported public cloud service providers.

In order to integrate PacketFabric with Relyance AI you will need an **API Key**.

#### In PacketFabric:

1. Login to your PacketFabric account.
2. Click on the account menu in the top right-hand corner and select **MY ACCOUNT**.
3. Select **API KEYS** in the left-hand navigation menu.
4. Click the **Add API Key** button.
5. Provide a meaningful name for your API Key (e.g. Relyance AI):
6. Click **Create** to create the key.
7. Copy the **API Key** in the dialog box to be used in Relyance AI.  You will not be able to access the API Key again after you click **Close**.

![PacketFabric-3.png](https://assets.relyanceuat.xyz/images/docs/8047546470797/8048587587085.png)

![PacketFabric-4.png](https://assets.relyanceuat.xyz/images/docs/8047546470797/8048587588109.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 **PacketFabric** integration card and click it to open its connections.
6. Under **Authentication Method**, choose **Custom**.
8. Paste the **API Key** into its respective field.

![PacketFabric-1.png](https://assets.relyanceuat.xyz/images/docs/8047546470797/8048572063885.png)

The **Authentication** step asks for:

- **API Key**: required; held as a secret.

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

![PacketFabric-2.png](https://assets.relyanceuat.xyz/images/docs/8047546470797/8048572061965.png)

11. Congratulations, you are now connected to **PacketFabric**.

<!-- 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" "packetfabric" {
  vendor = "packetfabric"
  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.packetfabric_api_key
    }
    secrets_wo_version = 1
  }

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

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