gitlab_service_github (Resource)

The gitlab_service_github resource allows to manage the lifecycle of a project integration with GitHub.

Example Usage

resource "gitlab_project" "awesome_project" {
  name             = "awesome_project"
  description      = "My awesome project."
  visibility_level = "public"
}

resource "gitlab_service_github" "github" {
  project        = gitlab_project.awesome_project.id
  token          = "REDACTED"
  repository_url = "https://github.com/gitlabhq/terraform-provider-gitlab"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# You can import a gitlab_service_github state using `terraform import <resource> <project_id>`:
terraform import gitlab_service_github.github 1