Skip to content

mixpanel_annotation (Resource)

Manages a Mixpanel annotation (mixpanel_annotation) — a timestamped note marking an event or deployment on the project timeline, visible in insights charts.

Example Usage

resource "mixpanel_annotation" "deploy" {
  project_id  = 1234567
  date        = "2024-01-15"
  description = "v2.5 production deployment"
}

Update Semantics

The annotation update endpoint (PATCH) accepts only description; date (and user_id) are create-only on the server, so the provider sends only description on update. To change an annotation's date, taint or recreate the resource.

Schema

Optional

  • annotation_id (Number)
  • date (String)
  • description (String)
  • user (String)
  • user_id (String)

Read-Only

  • id (Number) The ID of this resource.
  • project_id (Number)

Import

Annotations can be imported using the composite PROJECT_ID:ID format:

import {
  to = mixpanel_annotation.deploy
  id = "1234567:890"
}
terraform import mixpanel_annotation.deploy 1234567:890