The gitlab_project_freeze_period
resource allows to manage the lifecycle of a freeze period for a project.
Upstream API: GitLab REST API docs
resource "gitlab_project_freeze_period" "schedule" {
project = gitlab_project.foo.id
freeze_start = "0 23 * * 5"
freeze_end = "0 7 * * 1"
cron_timezone = "UTC"
}
freeze_end
(String) End of the Freeze Period in cron format (e.g. 0 2 * * *
).freeze_start
(String) Start of the Freeze Period in cron format (e.g. 0 1 * * *
).project
(String) The ID or URL-encoded path of the project to add the schedule to.cron_timezone
(String) The timezone.id
(String) The ID of this resource.Import is supported using the following syntax:
# GitLab project freeze periods can be imported using an id made up of `project_id:freeze_period_id`, e.g.
terraform import gitlab_project_freeze_period.schedule "12345:1337"