gitlab_group_project_file_template (Resource)

The gitlab_group_project_file_template resource allows setting a project from which custom file templates will be loaded. In order to use this resource, the project selected must be a direct child of the group selected. After the resource has run, gitlab_project_template.template_project_id is available for use. For more information about which file types are available as templates, view GitLab's documentation

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_group" "foo" {
  name        = "group"
  path        = "group"
  description = "An example group"
}

resource "gitlab_project" "bar" {
  name             = "template project"
  description      = "contains file templates"
  visibility_level = "public"

  namespace_id = gitlab_group.foo.id
}

resource "gitlab_group_project_file_template" "template_link" {
  group_id                 = gitlab_group.foo.id
  file_template_project_id = gitlab_project.bar.id
}

Schema

Required

Read-Only