An Automation Actions runner is the method for how actions are executed. This can be done locally using an installed runner agent or as a connection to a PD Runbook Automation instance.
# Assumes the TF_VAR_RUNBOOK_API_KEY variable is defined in the environment
variable "RUNBOOK_API_KEY" {
type = string
sensitive = true
}
resource "pagerduty_automation_actions_runner" "example" {
name = "Runner created via TF"
description = "Description of the Runner created via TF"
runner_type = "runbook"
runbook_base_uri = "rdcat.stg"
runbook_api_key = var.RUNBOOK_API_KEY
}
The following arguments are supported:
name
- (Required) The name of the runner. Max length is 255 characters.description
- (Required) The description of the runner. Max length is 1024 characters.runner_type
- (Required) The type of runner. The only allowed values is runbook
. runbook_base_uri
- (Required) The subdomain for your Runbook Automation Instance. runbook_api_key
- (Required) The unique User API Token created in Runbook Automation. The following attributes are exported:
id
- The ID of the runner.type
- The type of object. The value returned will be runner
.creation_time
- The time runner was created. Represented as an ISO 8601 timestamp.last_seen
- (Optional) The last time runner has been seen. Represented as an ISO 8601 timestamp.Runners can be imported using the id
, e.g.
resource "pagerduty_automation_actions_runner" "example" {
name = "Runner created via TF"
description = "Description of the Runner created via TF"
runner_type = "runbook"
runbook_base_uri = "rdcat.stg"
}
$ terraform import pagerduty_automation_actions_runner.example 01DER7CUUBF7TH4116K0M4WKPU