Skip to main content
Manages the tags of a Kosli repo. Kosli records a repo when an attestation or trail references it, so this resource tags an existing repo and never creates or deletes one. Use the kosli_repos data source or the kosli_repo data source to find repo IDs.
tags is authoritative: it manages every tag on the repo. Tags added outside Terraform, in the Kosli UI or with kosli tag repo, show as drift and are removed on the next apply. Destroying the resource removes all of the repo’s tags.
Declare at most one kosli_repo_tags per repo. Two resources for the same repo remove each other’s tags.
kosli_repos is read at plan time. A repo that Kosli first records later in the same pipeline isn’t visible until the next plan, so it isn’t tagged until then.

Example usage

Import

Repo tags can be imported using the repo’s internal ID:

Schema

Required

  • repo_id (String) Internal Kosli ID of the repo, as returned by the kosli_repos data source or kosli get repo. Repo names repeat across VCS providers, so tags are keyed by ID. Changing this forces a new resource.
  • tags (Map of String) Key-value pairs to tag the repo with. These replace every existing tag on the repo; {} removes them all.
Last modified on November 16, 2026