The gitlab_project_milestone
resource allows to manage the lifecycle of a project milestone.
Upstream API: GitLab REST API docs
# Create a project for the milestone to use
resource "gitlab_project" "example" {
name = "example"
description = "An example project"
namespace_id = gitlab_group.example.id
}
resource "gitlab_project_milestone" "example" {
project = gitlab_project.example.id
title = "example"
}
project
(String) The ID or URL-encoded path of the project owned by the authenticated user.title
(String) The title of a milestone.description
(String) The description of the milestone.due_date
(String) The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.start_date
(String) The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.state
(String) The state of the milestone. Valid values are: active
, closed
.created_at
(String) The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.expired
(Boolean) Bool, true if milestone expired.id
(String) The ID of this resource.iid
(Number) The ID of the project's milestone.milestone_id
(Number) The instance-wide ID of the project’s milestone.project_id
(Number) The project ID of milestone.updated_at
(String) The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.web_url
(String) The web URL of the milestone.Import is supported using the following syntax:
# Gitlab project milestone can be imported with a key composed of `<project>:<milestone_id>`, e.g.
terraform import gitlab_project_milestone.example "12345:11"