gitlab_release_link (Resource)

The gitlab_release_link resource allows to manage the lifecycle of a release link.

Upstream API: GitLab REST API docs

Example Usage

# Create a project
resource "gitlab_project" "example" {
  name        = "example"
  description = "An example project"
}

# Can create release link only to a tag associated with a release
resource "gitlab_release_link" "example" {
  project  = gitlab_project.example.id
  tag_name = "tag_name_associated_with_release"
  name     = "test"
  url      = "https://test/"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# Gitlab release link can be imported with a key composed of `<project>:<tag_name>:<link_id>`, e.g.
terraform import gitlab_release_link.example "12345:test:2"