gitlab_pipeline_schedule (Resource)

The gitlab_pipeline_schedule resource allows to manage the lifecycle of a scheduled pipeline.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_pipeline_schedule" "example" {
  project     = "12345"
  description = "Used to schedule builds"
  ref         = "master"
  cron        = "0 1 * * *"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# GitLab pipeline schedules can be imported using an id made up of `{project_id}:{pipeline_schedule_id}`, e.g.
terraform import gitlab_pipeline_schedule.test 1:3