Skip to content

mixpanel_feature_flag (Data Source)

Fetches a Mixpanel feature flag — a configuration that controls feature rollout and variant delivery to users. Use this data source to reference flags managed outside Terraform or to access read-only metadata like creator information and workspace settings.

Example Usage

data "mixpanel_feature_flag" "checkout" {
  project_id = 1234567
  flag_id    = "flag_xyz789"
}

# Access flag configuration
output "flag_status" {
  value = data.mixpanel_feature_flag.checkout.status
}

For the corresponding resource to manage feature flags, see mixpanel_feature_flag.

Schema

Required

  • flag_id (String)
  • project_id (Number)

Optional

  • content_environments (String)

Read-Only

  • allow_staff_override (Boolean)
  • can_pin (Boolean)
  • can_share (Boolean)
  • can_update_basic (Boolean)
  • can_view (Boolean)
  • content_environments_id (String)
  • content_type (String)
  • context (String)
  • created (String)
  • creator_email (String)
  • creator_id (Number)
  • creator_name (String)
  • data_group_id (String)
  • deleted (String)
  • description (String)
  • enabled_at (String)
  • experiment_id (String)
  • hash_salt (String)
  • id (String) The ID of this resource.
  • is_experiment_active (Boolean)
  • is_favorited (Boolean)
  • is_shared_with_project (Boolean)
  • is_superadmin (Boolean)
  • key (String)
  • last_modified_by_email (String)
  • last_modified_by_id (Number)
  • last_modified_by_name (String)
  • modified (String)
  • name (String)
  • pinned_date (String)
  • project_name (String)
  • reset_hash_salt (Boolean)
  • ruleset (Attributes) (see below for nested schema)
  • serving_method (String)
  • status (String)
  • tags (List of String)
  • workspace_id (Number)

Nested Schema for ruleset

Read-Only:

Nested Schema for ruleset.rollout

Read-Only:

  • cohort_hash (String)
  • name (String)
  • rollout_percentage (Number)
  • variant_splits (Map of Number)

Nested Schema for ruleset.variants

Read-Only:

  • description (String)
  • is_control (Boolean)
  • is_sticky (Boolean)
  • key (String)
  • screenshot (String)
  • split (Number)