The gitlab_pipeline_trigger
resource allows to manage the lifecycle of a pipeline trigger.
Upstream API: GitLab REST API docs
resource "gitlab_pipeline_trigger" "example" {
project = "12345"
description = "Used to trigger builds"
}
description
(String) The description of the pipeline trigger.project
(String) The name or id of the project to add the trigger to.id
(String) The ID of this resource.pipeline_trigger_id
(Number) The pipeline trigger id.token
(String, Sensitive) The pipeline trigger token.Import is supported using the following syntax:
# GitLab pipeline triggers can be imported using an id made up of `{project_id}:{pipeline_trigger_id}`, e.g.
terraform import gitlab_pipeline_trigger.test 1:3