Skip to main content

import-from-git

Last updated on

Import Entities from Git

In Harness IDP, you can create new entities by importing their YAML definitions stored in Git repositories directly into Harness IDP. This feature allows teams to reuse pre-defined configurations, onboard services faster, and migrate from existing repositories.


Prerequisites

Before you begin, ensure:

  • You have a Git connector configured in Harness IDP (Harness Code Repository, GitHub, GitLab, Bitbucket, or Azure Repos) to import your entity YAMLs. Go to Configure Git Connector to learn more.
  • API Access is enabled for your Git connector (required for Harness Git Experience). For connection types where API access is not enabled by default, you must enable it from the Git connector settings. Refer to enable API access.


Import an Entity from Git

To use the Import from Git feature in IDP 2.0, Backstage YAML is not supported directly. Since IDP 2.0 uses a new data model, existing YAMLs from IDP 1.0 (Backstage-native) must be converted. To learn more about converting IDP 1.0 YAMLs to IDP 2.0 YAMLs, go to Converting IDP 1.0 YAMLs.

To learn more about entity scope rules, connector constraints, and advanced import options, go to Import Entity in Harness IDP.