gitlab_managed_license (Resource)

The gitlab_managed_license resource allows to manage the lifecycle of a managed license.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_project" "foo" {
  name             = "example project"
  description      = "Lorem Ipsum"
  visibility_level = "public"
}

resource "gitlab_managed_license" "mit" {
  project         = gitlab_project.foo.id
  name            = "MIT license"
  approval_status = "allowed"
}

Schema

Required

Read-Only

Import

Import is supported using the following syntax:

# You can import this resource with an id made up of `{project-id}:{license-id}`, e.g.
terraform import gitlab_managed_license.foo 1:2