{
  "id": "terraform-10",
  "title": "Entity Matching pipeline",
  "description": "Declare an Entity Matching pipeline that compares Person nodes and proposes matches above a similarity cutoff, with the indykite_entity_matching_pipeline resource.",
  "category": "EntityMatching",
  "tags": [
    "Entity Matching",
    "Identity Resolution",
    "Pipeline"
  ],
  "lastUpdated": "2026-10-12",
  "terraformProviderDocs": [
    "https://registry.terraform.io/providers/indykite/indykite/latest/docs/resources/entity_matching_pipeline"
  ],
  "relatedGuides": [
    "/guides/guide-entity-matching",
    "/guides/guide-terraform"
  ],
  "commonErrors": [
    {
      "code": "ALREADY_EXISTS",
      "message": "Conflict",
      "solution": "name is unique within the project and immutable. Choose another name, or import the existing pipeline into Terraform state."
    }
  ],
  "summary": "An Entity Matching pipeline finds nodes that describe the same real-world entity: it compares nodes of the source types with nodes of the target types and proposes the pairs whose similarity reaches the cutoff.\nThis Terraform configuration creates one pipeline that:\n1. Compares Person nodes with Person nodes (source_node_filter and target_node_filter).\n2. Proposes matches with a similarity of 0.8 or more (similarity_score_cutoff; the default is 0.5).\nRuns are started on demand through the Entity Matching API; the configuration only declares what to compare.",
  "usecase": "Scenario: customer records arrive from several systems and the same person appears more than once in the graph.\n- The pipeline is declared once, in version control, with the node types to compare and the cutoff the data team agreed on.\n- Each run is triggered with POST /entity-matching/v1/pipelines/{id}/runs once the automatic property mapping has reached SUCCESS; its status and proposed matches are read back through the same API.\n- Raising or lowering similarity_score_cutoff is an update; changing the node types means a new pipeline, since the filters cannot change after creation.",
  "requirements": "- ServiceAccount credentials created in the IndyKite Hub for your organization.\n- IndyKite Terraform provider 0.49.0 or later, the release the example pins in required_providers; the Terraform guide lists the version each feature first appeared in.\n- A project GID for project_id, and an Application Agent with the EntityMatching permission to run the pipeline afterwards.",
  "steps": "1. Put your project GID in project_id and choose the node types to compare.\n2. Apply. The pipeline's GID is in the resource id.\n3. Read the suggested property mapping and start a run through the Entity Matching API, as the Entity Matching guide shows.\n4. Adjust similarity_score_cutoff and apply again when the proposed matches are too loose or too strict.",
  "code": [
    {
      "description": "An Entity Matching pipeline comparing Person nodes with a 0.8 similarity cutoff.",
      "filename": "main.tf",
      "code": "\nterraform {\n  required_providers {\n    indykite = {\n      source  = \"indykite/indykite\"\n      version = \">= 0.49.0\" # or a later release\n    }\n  }\n}\n\n# indykite provider integrates IndyKite platform with Terraform scripting.\n# Provider for now does not support any parameters and all is set within service account credential file.\nprovider \"indykite\" {}\n\n# An Entity Matching pipeline compares nodes of the source types with nodes of\n# the target types and proposes matches above the similarity cutoff. Runs are\n# started by POST /entity-matching/v1/pipelines/{id}/runs; rerun_interval is\n# accepted but schedules nothing.\n# source_node_filter and target_node_filter cannot be changed after creation.\nresource \"indykite_entity_matching_pipeline\" \"person_dedup\" {\n  name                    = \"terraform-entity-matching\"\n  display_name            = \"Terraform entity matching\"\n  description             = \"Finds Person nodes that describe the same individual\"\n  project_id              = \"gid:AAAAAmluZHlraURlgAABDwAAAAA\" # your project GID\n  source_node_filter      = [\"Person\"]\n  target_node_filter      = [\"Person\"]\n  similarity_score_cutoff = 0.8 # 0 to 1; defaults to 0.5\n}\n"
    }
  ],
  "links": {
    "html": "/terraform/terraform-10",
    "markdown": "/terraform/terraform-10.md",
    "terraformRegistry": "https://registry.terraform.io/providers/indykite/indykite/latest/docs"
  }
}