gitlab_project_mirror (Resource)

The gitlab_project_mirror resource allows to manage the lifecycle of a project mirror.

This is for pushing changes to a remote repository. Pull Mirroring can be configured using a combination of the import_url, mirror, and mirror_trigger_builds properties on the gitlab_project resource.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_project_mirror" "foo" {
  project = "1"
  url     = "https://username:password@github.com/org/repository.git"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g.
terraform import gitlab_project_mirror.foo "12345:1337"