---
updatedAt: 2026-10-27T19:16:12.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# Observe by Snowflake Terraform provider

The Observe by Snowflake Terraform provider allows you to call the Observe by Snowflake REST API and create the same objects you can build in the UI, such as Datastreams, Datasets, Monitors, dashboards, Worksheets, pollers, and configure RBAC.

Perform the following steps to get started:

1. Create an API authentication token. See [Obtain a bearer token for local authentication.](https://docs.observeinc.com/reference/observe-api-authentication#obtain-a-bearer-token-for-local-authentication)
2. In the location where you will create your Terraform `.tf` files, create a file called `main.tf` and add the following code:

```text
terraform {
  required_providers {
    observe = {
      source  = "observeinc/observe"
      version = "~> 0.14"
    }
  }
}
provider "observe" {}
```

3. Export the following environment variables, and be sure to replace the placeholders with real values from your environment:

```text
export OBSERVE_CUSTOMER=<YOUR_CUSTOMER_ID>
export OBSERVE_DOMAIN=<YOUR_DOMAIN>
export OBSERVE_API_TOKEN=<OBSERVE_API_TOKEN>
```

| Placeholder           | Description                                                                                                                                                                         |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `<YOUR_CUSTOMER_ID>`  | Your customer or tenant ID. You can find this in the first part of your URL. For example, if you login using **123456789012.observeinc.com**, your customer ID is **123456789012**. |
| `<YOUR_DOMAIN>`       | Your domain value based on where your observe tenant is deployed. For example, if you login using **123456789012.observeinc.com**, your domain value is **observeinc.com**.         |
| `<OBSERVE_API_TOKEN>` | Your Observe REST API token.                                                                                                                                                        |

4. Run the following commands:

```text
terraform init
terraform plan
```

5. Test to see if it works! In your `main.tf file`, add the following code to create a sample Datastream called **TF\_Datastream**:

```text
resource "observe_datastream" "datastream" {
  name        = "TF_Datastream"
  description = "Created by Terraform"
  type        = "OtelLogs"
}
```

6. Run the following command, and type **yes** when prompted:

```text
terraform apply
```

In the Observe by Snowflake UI, you can verify that the Datastream was created:

<Image src="https://files.readme.io/ed049bf332692a29f98846a736ae180534d91b512267433d7277c501f30c4a78-Screenshot_2026-10-27_at_11.46.07_AM.png" border={true} />

For detailed documentation on the provider please visit our provider page on the [HashiCorp Terraform Registry](https://registry.terraform.io/providers/observeinc/observe/latest/docs).