Use this data source to get information about a specific Incident Workflow so that you can create a trigger for it.
data "pagerduty_incident_workflow" "my_workflow" {
name = "Some Workflow Name"
}
data "pagerduty_service" "first_service" {
name = "My First Service"
}
resource "pagerduty_incident_workflow_trigger" "automatic_trigger" {
type = "conditional"
workflow = data.pagerduty_incident_workflow.my_workflow.id
services = [data.pagerduty_service.first_service.id]
condition = "incident.priority matches 'P1'"
}
The following arguments are supported:
name
- (Required) The name of the workflow.id
- The ID of the found workflow.