Skip to content

mixpanel_connector (Resource)

Manages a Mixpanel Connector — an outbound data export from Mixpanel to an external destination. Connectors can send event data to data warehouses, analytics tools, and other integrations.

Example Usage

resource "mixpanel_connector" "warehouse_export" {
  project_id     = 1234567
  connector_type = "bigquery"
  label          = "Production BigQuery export"

  connector_properties = jsonencode({
    project_id = "my-gcp-project"
    dataset    = "mixpanel_events"
    table      = "events"
  })

  category_properties = jsonencode({
    enabled_categories = ["events", "people"]
  })
}

Schema

Optional

  • category_properties (String)
  • connector_properties (String)
  • connector_type (String)
  • label (String)
  • project_id (Number)

Read-Only

  • connector_id (String)
  • created_at (String)
  • created_by (Attributes) Basic user information for UI display. (see below for nested schema)
  • failure_message (String)
  • status (String)

Nested Schema for created_by

Read-Only:

  • email (String)
  • id (Number)
  • name (String)

Import

Import a connector using PROJECT_ID:CONNECTOR_ID:

import {
  to = mixpanel_connector.warehouse_export
  id = "1234567:conn_abc123"
}
terraform import mixpanel_connector.warehouse_export 1234567:conn_abc123

Note: The connector_properties and category_properties attributes contain credentials that are write-only and never returned by the API. After import, these attributes will be null in state and must be re-supplied in your Terraform configuration. The connector will remain functional; only the Terraform state will be incomplete until you provide the configuration values.